cleanup and add 200px threshold

This commit is contained in:
Travis Hegner
2015-06-29 14:28:31 -04:00
parent 877fca845b
commit ee1c51a7b5

View File

@ -1,21 +1,15 @@
$(document).ready(function(){
$("img.lazy").lazyload({
effect: "fadeIn"
effect: "fadeIn",
threshold: 200
}).removeClass("lazy");
$(document).ajaxStop(function() {
$("img.lazy").lazyload({
effect: "fadeIn"
effect: "fadeIn",
threshold: 200
}).removeClass("lazy");
});
});
function get_overlib(content) {
var ret = overlib(content, WRAP,HAUTO,VAUTO);
jQuery.event.trigger("ajaxStop");
return ret;
}
});