Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #25 from camelmasa/master

add image scroll parameter.
  • Loading branch information...
commit 5baa8da75fe3a597bf7796713b2a41a5eda18a7b 2 parents 600dbf4 + f7fd6cb
@krewenki authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 jquery.lightbox.js
View
7 jquery.lightbox.js
@@ -59,6 +59,10 @@
$("body").append(string);
}
+ if (opts.imageScroll === true) {
+ $('#lightbox').css('position', 'fixed')
+ }
+
$("#overlay, #lightbox").click(function(){ end(); }).hide();
$("#loadingLink, #bottomNavClose").click(function(){ end(); return false;});
$('#outerImageContainer').width(opts.widthCurrent).height(opts.heightCurrent);
@@ -456,7 +460,7 @@
};
$.fn.lightbox.defaults = {
- triggerEvent: "click",
+ triggerEvent: "click",
allSet: false,
fileLoadingImage: 'images/loading.gif',
fileBottomNavCloseImage: 'images/closelabel.gif',
@@ -464,6 +468,7 @@
borderSize: 10,
imageArray: new Array,
activeImage: null,
+ imageScroll: false,
inprogress: false,
resizeSpeed: 350,
widthCurrent: 250,
Please sign in to comment.
Something went wrong with that request. Please try again.