Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To support this library with jQuery 1.8 and newer replaced "load" to "on("load"...) #205

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions slideshow/js/supersized.3.2.7.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
var slidePrev = base.el+' li:eq('+loadPrev+')';
imgPrev.appendTo(slidePrev).wrap('<a ' + imageLink + linkTarget + '></a>').parent().parent().addClass('image-loading prevslide');

imgPrev.load(function(){
imgPrev.on('load', function(){
$(this).data('origWidth', $(this).width()).data('origHeight', $(this).height());
base.resizeNow(); // Resize background image
}); // End Load
Expand All @@ -169,7 +169,7 @@
var slideCurrent= base.el+' li:eq('+vars.current_slide+')';
img.appendTo(slideCurrent).wrap('<a ' + imageLink + linkTarget + '></a>').parent().parent().addClass('image-loading activeslide');

img.load(function(){
img.on('load', function(){
base._origDim($(this));
base.resizeNow(); // Resize background image
base.launch();
Expand All @@ -185,7 +185,7 @@
var slideNext = base.el+' li:eq('+loadNext+')';
imgNext.appendTo(slideNext).wrap('<a ' + imageLink + linkTarget + '></a>').parent().parent().addClass('image-loading');

imgNext.load(function(){
imgNext.on('load',function(){
$(this).data('origWidth', $(this).width()).data('origHeight', $(this).height());
base.resizeNow(); // Resize background image
}); // End Load
Expand Down Expand Up @@ -497,7 +497,7 @@

img.appendTo(targetList).wrap('<a ' + imageLink + linkTarget + '></a>').parent().parent().addClass('image-loading').css('visibility','hidden');

img.load(function(){
img.on('load', function(){
base._origDim($(this));
base.resizeNow();
}); // End Load
Expand Down Expand Up @@ -601,7 +601,7 @@

img.appendTo(targetList).wrap('<a ' + imageLink + linkTarget + '></a>').parent().parent().addClass('image-loading').css('visibility','hidden');

img.load(function(){
img.on('load', function(){
base._origDim($(this));
base.resizeNow();
}); // End Load
Expand Down Expand Up @@ -782,7 +782,7 @@

img.appendTo(targetList).wrap('<a ' + imageLink + linkTarget + '></a>').parent().parent().addClass('image-loading').css('visibility','hidden');

img.load(function(){
img.on('load', function(){
base._origDim($(this));
base.resizeNow();
}); // End Load
Expand All @@ -805,7 +805,7 @@

img.appendTo(targetList).wrap('<a ' + imageLink + linkTarget + '></a>').parent().parent().addClass('image-loading').css('visibility','hidden');

img.load(function(){
img.on('load', function(){
base._origDim($(this));
base.resizeNow();
}); // End Load
Expand Down