From 305646fa63f735f3dad727941f4324dc7ad587b2 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 10 Apr 2014 11:33:42 -0400 Subject: [PATCH] move lazy script --- dashboard-ui/scripts/librarybrowser.js | 8 ++++++-- dashboard-ui/scripts/musicartists.js | 6 ------ dashboard-ui/scripts/site.js | 4 ---- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index 6468b53de0..a2fc2608ae 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -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; diff --git a/dashboard-ui/scripts/musicartists.js b/dashboard-ui/scripts/musicartists.js index 142bfaa3b2..a19d6581fa 100644 --- a/dashboard-ui/scripts/musicartists.js +++ b/dashboard-ui/scripts/musicartists.js @@ -120,10 +120,4 @@ updateFilterControls(this); }); - $(function () { - $("body").on("create", function () { - $(".lazy").unveil(200); - }); - }); - })(jQuery, document); \ No newline at end of file diff --git a/dashboard-ui/scripts/site.js b/dashboard-ui/scripts/site.js index ddc4e42d00..7605914f35 100644 --- a/dashboard-ui/scripts/site.js +++ b/dashboard-ui/scripts/site.js @@ -1386,10 +1386,6 @@ $(function () { ApiClient.closeWebSocket(); } }); - - $("body").on("create", function () { - $(".lazy").unveil(200); - }); }); Dashboard.jQueryMobileInit();