mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
move lazy script
This commit is contained in:
parent
b7c828e294
commit
305646fa63
3 changed files with 6 additions and 12 deletions
|
@ -1,5 +1,11 @@
|
||||||
var LibraryBrowser = (function (window, document, $, screen, localStorage) {
|
var LibraryBrowser = (function (window, document, $, screen, localStorage) {
|
||||||
|
|
||||||
|
$(function() {
|
||||||
|
$("body").on("create", function () {
|
||||||
|
$(".lazy").unveil(200);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
var defaultBackground = "#333";
|
var defaultBackground = "#333";
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -432,8 +438,6 @@
|
||||||
|
|
||||||
options.shape = options.shape || "portrait";
|
options.shape = options.shape || "portrait";
|
||||||
|
|
||||||
options.lazy = options.lazy || false;
|
|
||||||
|
|
||||||
var html = "";
|
var html = "";
|
||||||
|
|
||||||
var primaryImageAspectRatio = options.shape == 'auto' ? LibraryBrowser.getAveragePrimaryImageAspectRatio(items) : null;
|
var primaryImageAspectRatio = options.shape == 'auto' ? LibraryBrowser.getAveragePrimaryImageAspectRatio(items) : null;
|
||||||
|
|
|
@ -120,10 +120,4 @@
|
||||||
updateFilterControls(this);
|
updateFilterControls(this);
|
||||||
});
|
});
|
||||||
|
|
||||||
$(function () {
|
|
||||||
$("body").on("create", function () {
|
|
||||||
$(".lazy").unveil(200);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
})(jQuery, document);
|
})(jQuery, document);
|
|
@ -1386,10 +1386,6 @@ $(function () {
|
||||||
ApiClient.closeWebSocket();
|
ApiClient.closeWebSocket();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$("body").on("create", function () {
|
|
||||||
$(".lazy").unveil(200);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
Dashboard.jQueryMobileInit();
|
Dashboard.jQueryMobileInit();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue