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(pos!=0) (pictEls-pos > settings.thumbs || pictEls%settings.thumbs == 0)? pos -= settings.thumbs : pos -= pictEls % settings.thumbs; | + | 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 371: | ||
return; | return; | ||
- | if (times) if(times.constructor != Number) { | + | if (times ){ if(times.constructor != Number) { |
belay = !!times; | belay = !!times; | ||
times = 0; | times = 0; | ||
+ | } | ||
} | } | ||
Line 386: | Line 389: | ||
var handler = function() { | var handler = function() { | ||
- | if (belay) if(this.inProgress) | + | if (belay){ if(this.inProgress) |
return; | return; | ||
+ | } | ||
this.inProgress = true; | this.inProgress = true; | ||
- | if | + | if (++counter > times){ if(times !== 0){ |
jQuery.timer.remove(element, label, fn); | jQuery.timer.remove(element, label, fn); | ||
+ | } | ||
+ | } | ||
+ | if(fn.call(element, counter) === false){ | ||
+ | jQuery.timer.remove(element, label, fn); | ||
+ | } | ||
+ | |||
this.inProgress = false; | this.inProgress = false; | ||
}; | }; |
Revision as of 13:34, 2 October 2011