Team:OUC-China/Team/Photos
From 2011.igem.org
(Difference between revisions)
Line 224: | Line 224: | ||
}); | }); | ||
jQuerybtl.bind("click", function(){ | jQuerybtl.bind("click", function(){ | ||
- | if (l_enabled | + | if (l_enabled) if(pos!=0) (pictEls-pos > settings.thumbs || pictEls%settings.thumbs == 0)? pos -= settings.thumbs : pos -= pictEls % settings.thumbs; |
l_enabled = false; | l_enabled = false; | ||
jQuery(this).prev().find("ul:not(:animated)").animate({ left: -(thumbsWidth+settings.thumbsRightMargin)*pos}, 500, settings.easeFunc, function(){authorityMixing();}); | jQuery(this).prev().find("ul:not(:animated)").animate({ left: -(thumbsWidth+settings.thumbsRightMargin)*pos}, 500, settings.easeFunc, function(){authorityMixing();}); | ||
Line 369: | Line 369: | ||
return; | return; | ||
- | if (times | + | if (times) if(times.constructor != Number) { |
belay = !!times; | belay = !!times; | ||
times = 0; | times = 0; | ||
Line 386: | Line 386: | ||
var handler = function() { | var handler = function() { | ||
- | if (belay | + | if (belay) if(this.inProgress) |
return; | return; | ||
this.inProgress = true; | this.inProgress = true; | ||
- | if ((++counter > times | + | if ((++counter > times)if(times !== 0) || fn.call(element, counter) === false) |
jQuery.timer.remove(element, label, fn); | jQuery.timer.remove(element, label, fn); | ||
this.inProgress = false; | this.inProgress = false; |
Revision as of 13:26, 2 October 2011