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

Merge pull request #4704 from thornbill/eslint-sonar-updates

This commit is contained in:
Bill Thornton 2023-07-08 00:53:55 -04:00 committed by GitHub
commit 71ec7c57f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
99 changed files with 263 additions and 287 deletions

View file

@ -24,12 +24,6 @@ function fillTimeOfDay(select) {
}).join('');
}
Array.prototype.remove = function (from, to) {
const rest = this.slice((to || from) + 1 || this.length);
this.length = from < 0 ? this.length + from : from;
return this.push.apply(this, rest);
};
const ScheduledTaskPage = {
refreshScheduledTask: function (view) {
loading.show();
@ -143,7 +137,7 @@ const ScheduledTaskPage = {
loading.show();
const id = getParameterByName('id');
ApiClient.getScheduledTask(id).then(function (task) {
task.Triggers.remove(index);
task.Triggers.splice(index, 1);
ApiClient.updateScheduledTaskTriggers(task.Id, task.Triggers).then(function () {
ScheduledTaskPage.refreshScheduledTask(view);
});