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

15 lines
527 B
JavaScript
Raw Normal View History

2018-10-23 01:05:09 +03:00
define(["syncJobList"], function(syncJobList) {
"use strict";
return function(view, params) {
var apiClient = ApiClient,
mySyncJobList = new syncJobList({
serverId: apiClient.serverId(),
userId: null,
element: view.querySelector(".syncActivity"),
mode: "download"
});
view.addEventListener("viewdestroy", function() {
mySyncJobList && (mySyncJobList.destroy(), mySyncJobList = null)
})
}
});