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

Beautified all js in web dashboard

This commit is contained in:
Vasily 2018-10-23 01:05:09 +03:00
parent 5895f209e7
commit 6bfd795635
346 changed files with 72978 additions and 375 deletions

View file

@ -1 +1,18 @@
define(["apphost","globalize","syncJobList","events","localsync","emby-button","paper-icon-button-light"],function(appHost,globalize,syncJobList,events,localSync){"use strict";return function(view,params){var interval,mySyncJobList=new syncJobList({mode:params.mode,enableRemoteSyncManagement:!1,serverId:ApiClient.serverId(),userId:"offline"===params.mode?null:ApiClient.getCurrentUserId(),element:view.querySelector(".syncActivity"),mode:params.mode});view.addEventListener("viewbeforehide",function(){interval&&(clearInterval(interval),interval=null)}),view.addEventListener("viewdestroy",function(){mySyncJobList.destroy()})}});
define(["apphost", "globalize", "syncJobList", "events", "localsync", "emby-button", "paper-icon-button-light"], function(appHost, globalize, syncJobList, events, localSync) {
"use strict";
return function(view, params) {
var interval, mySyncJobList = new syncJobList({
mode: params.mode,
enableRemoteSyncManagement: !1,
serverId: ApiClient.serverId(),
userId: "offline" === params.mode ? null : ApiClient.getCurrentUserId(),
element: view.querySelector(".syncActivity"),
mode: params.mode
});
view.addEventListener("viewbeforehide", function() {
interval && (clearInterval(interval), interval = null)
}), view.addEventListener("viewdestroy", function() {
mySyncJobList.destroy()
})
}
});