Skip to content

Commit

Permalink
Added options for disabling rightclick and scrolling, changed default…
Browse files Browse the repository at this point in the history
… prev- and next-button text
  • Loading branch information
root committed Nov 7, 2015
1 parent 2bb23e8 commit 8f159c1
Show file tree
Hide file tree
Showing 8 changed files with 413 additions and 362 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ var lightbox = $('.gallery a').simpleLightbox(options);
| className: | 'simple-lightbox' | string | adds a class to the wrapper of the lightbox |
| widthRatio: | 0.8 | float | Ratio of image width to screen width |
| heightRatio: | 0.9 | float | Ratio of image height to screen height |
| disableRightClick | false | bool | disable rightclick on image or not |
| disableScroll | true | bool | stop scrolling page if lightbox is openend |

###Events
| Name | Description |
Expand Down Expand Up @@ -72,6 +74,7 @@ var gallery = $('.gallery a').simpleLightbox();
gallery.next(); // Next Image
```
### Changelog
**1.5.0 - Added options for disabling rightclick and scrolling, changed default prev- and next-button text**
**1.4.6 - Option for fileExt can now be false to enable pictures like example.com/pic/200/100**
**1.4.5 - Bugfix lightbox opening does not work on mobile devices**
**1.4.4 - Bugfix no drag&drop in FF, changed default close text, only output data if lightbox is opened**
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simplelightbox",
"version": "1.4.6",
"version": "1.5.0",
"homepage": "http://andreknieriem.de/simple-lightbox",
"authors": [
"André Rinas <[email protected]> (http://andreknieriem.de)"
Expand Down
Loading

0 comments on commit 8f159c1

Please sign in to comment.