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

fix scheduled task removal

This commit is contained in:
Luke Pulverenti 2015-12-07 11:47:09 -05:00
parent 4335b1ac03
commit af0fa75b0e
5 changed files with 19 additions and 12 deletions

View file

@ -1,4 +1,11 @@
var ScheduledTaskPage = {
// Array Remove - By John Resig (MIT Licensed)
Array.prototype.remove = function (from, to) {
var rest = this.slice((to || from) + 1 || this.length);
this.length = from < 0 ? this.length + from : from;
return this.push.apply(this, rest);
};
var ScheduledTaskPage = {
refreshScheduledTask: function () {
Dashboard.showLoadingMsg();

View file

@ -24,14 +24,14 @@
view.ImageTags = {};
view.icon = 'live-tv';
view.onclick = "LibraryBrowser.showTab('livetv.html', 0);return false;";
view.onclick = "LibraryBrowser.showTab('livetv.html', 0);event.preventDefault();event.stopPropagation();return false;";
var guideView = $.extend({}, view);
guideView.Name = Globalize.translate('ButtonGuide');
guideView.ImageTags = {};
guideView.icon = 'dvr';
guideView.url = 'livetv.html?tab=1';
guideView.onclick = "LibraryBrowser.showTab('livetv.html', 1);return false;";
guideView.onclick = "LibraryBrowser.showTab('livetv.html', 1);event.preventDefault();event.stopPropagation();return false;";
list.push(guideView);
var recordedTvView = $.extend({}, view);
@ -39,7 +39,7 @@
recordedTvView.ImageTags = {};
recordedTvView.icon = 'video-library';
recordedTvView.url = 'livetv.html?tab=3';
recordedTvView.onclick = "LibraryBrowser.showTab('livetv.html', 3);return false;";
recordedTvView.onclick = "LibraryBrowser.showTab('livetv.html', 2);event.preventDefault();event.stopPropagation();return false;";
list.push(recordedTvView);
}
}