move lazy script

This commit is contained in:
Luke Pulverenti
2014-04-10 11:33:42 -04:00
parent b7c828e294
commit 305646fa63
3 changed files with 6 additions and 12 deletions
+6 -2
View File
@@ -1,5 +1,11 @@
var LibraryBrowser = (function (window, document, $, screen, localStorage) {
$(function() {
$("body").on("create", function () {
$(".lazy").unveil(200);
});
});
var defaultBackground = "#333";
return {
@@ -432,8 +438,6 @@
options.shape = options.shape || "portrait";
options.lazy = options.lazy || false;
var html = "";
var primaryImageAspectRatio = options.shape == 'auto' ? LibraryBrowser.getAveragePrimaryImageAspectRatio(items) : null;
-6
View File
@@ -120,10 +120,4 @@
updateFilterControls(this);
});
$(function () {
$("body").on("create", function () {
$(".lazy").unveil(200);
});
});
})(jQuery, document);
-4
View File
@@ -1386,10 +1386,6 @@ $(function () {
ApiClient.closeWebSocket();
}
});
$("body").on("create", function () {
$(".lazy").unveil(200);
});
});
Dashboard.jQueryMobileInit();