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();