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

fix sync job deletion

This commit is contained in:
Luke Pulverenti 2015-07-02 08:55:07 -04:00
parent 54afe9d0c2
commit d999c53f9f
9 changed files with 22 additions and 16 deletions

View file

@ -181,7 +181,7 @@
Events.trigger(elem[0], 'create');
$('.btnJobMenu', elem).on('click', function () {
showJobMenu(this);
showJobMenu(page, this);
});
if (!jobs.length) {
@ -190,7 +190,7 @@
}
}
function showJobMenu(elem) {
function showJobMenu(page, elem) {
var card = $(elem).parents('.card');
var jobId = card.attr('data-id');
@ -222,10 +222,10 @@
switch (id) {
case 'delete':
cancelJob(jobId);
cancelJob(page, jobId);
break;
case 'cancel':
cancelJob(jobId);
cancelJob(page, jobId);
break;
default:
break;