mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
trying the load callback
This commit is contained in:
@@ -1,24 +1,27 @@
|
||||
$(document).ready(function(){
|
||||
|
||||
$("img.lazy").lazyload({
|
||||
$("img.lazy").load(lazyload_done).lazyload({
|
||||
effect: "fadeIn",
|
||||
threshold: 300,
|
||||
placeholder: "",
|
||||
skip_invisible: false
|
||||
}).removeClass("lazy").removeAttr('width').removeAttr('height');
|
||||
placeholder: ""
|
||||
});
|
||||
|
||||
|
||||
$(document).ajaxStop(function() {
|
||||
$("img.lazy").lazyload({
|
||||
$("img.lazy").load(lazyload_done).lazyload({
|
||||
effect: "fadeIn",
|
||||
threshold: 300,
|
||||
placeholder: "",
|
||||
skip_invisible: false
|
||||
}).removeClass("lazy").removeAttr('width').removeAttr('height');
|
||||
placeholder: ""
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
function wrap_overlib() {
|
||||
var ret = overlib.apply(null,arguments);
|
||||
$('div#overDiv img').removeAttr('width').removeAttr('height');
|
||||
$('div#overDiv img').removeAttr('width').removeAttr('height').removeClass('lazy');
|
||||
return ret;
|
||||
}
|
||||
|
||||
function lazyload_done() {
|
||||
$(this).removeAttr('width').removeAttr('height').removeClass('lazy');
|
||||
}
|
Reference in New Issue
Block a user