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

@ -175,6 +175,7 @@
tabs.alignBottom = true;
tabs.classList.add('bottomTabs');
}
tabs.noink = true;
if (LibraryBrowser.enableFullPaperTabs()) {

View file

@ -2,7 +2,7 @@
function onSharingSuccess(options) {
console.log('share success. shareId: ' + options.share.Id);
Logger.log('share success. shareId: ' + options.share.Id);
}
@ -10,7 +10,7 @@
var shareId = options.share.Id;
console.log('share cancelled. shareId: ' + shareId);
Logger.log('share cancelled. shareId: ' + shareId);
// Delete the share since it was cancelled
ApiClient.ajax({

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;