First separation commit.
Added LICENSE, README.md, CONTRIBUTORS.md
This commit is contained in:
parent
09513af31b
commit
4678528d00
657 changed files with 422 additions and 0 deletions
18
src/scripts/mysync.js
Normal file
18
src/scripts/mysync.js
Normal file
|
@ -0,0 +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()
|
||||
})
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue