1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update jqm

This commit is contained in:
Luke Pulverenti 2015-08-31 21:38:15 -04:00
parent cacc76dc5d
commit 55c36e3507
7 changed files with 1256 additions and 1232 deletions

View file

@ -2112,6 +2112,11 @@ var AppInfo = {};
return {};
});
define("jqmslider", ["thirdparty/jquerymobile-1.4.5/jqm.slider"], function () {
Dashboard.importCss('thirdparty/jquerymobile-1.4.5/jqm.slider.css');
return {};
});
$.extend(AppInfo, Dashboard.getAppInfo(appName, deviceId, deviceName));
var drawer = document.querySelector('.mainDrawerPanel');
@ -2263,6 +2268,11 @@ $(document).on('pagecreate', ".page", function () {
var dependencies = this.getAttribute('data-require');
dependencies = dependencies ? dependencies.split(',') : null;
if (!page.classList.contains('libraryPage')) {
dependencies = dependencies || [];
dependencies.push('jqmicons');
}
Dashboard.firePageEvent(page, 'pageinitdepends', dependencies);
}).on('pagebeforeshow', ".page", function () {
@ -2331,8 +2341,4 @@ $(document).on('pagecreate', ".page", function () {
if (apiClient && !apiClient.isWebSocketOpen()) {
Dashboard.refreshSystemInfoFromServer();
}
if (!page.classList.contains('libraryPage')) {
require(['jqmicons']);
}
});