jellyfin-web/dashboard-ui/scripts/managedownloads.js

1 line
358 B
JavaScript
Raw Normal View History

2018-09-12 10:26:21 -07: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)})}});