mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
move completely to fetch
This commit is contained in:
parent
ee899a7332
commit
9932bc3eb5
168 changed files with 948 additions and 945 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
function reloadList(page) {
|
||||
|
||||
ApiClient.getScheduledTasks({ isHidden: false }).done(function (tasks) {
|
||||
ApiClient.getScheduledTasks({ isHidden: false }).then(function (tasks) {
|
||||
|
||||
populateList(page, tasks);
|
||||
|
||||
|
@ -255,7 +255,7 @@
|
|||
|
||||
var button = this;
|
||||
var id = button.getAttribute('data-taskid');
|
||||
ApiClient.startScheduledTask(id).done(function () {
|
||||
ApiClient.startScheduledTask(id).then(function () {
|
||||
|
||||
updateTaskButton(button, "Running");
|
||||
reloadList(page);
|
||||
|
@ -265,7 +265,7 @@
|
|||
|
||||
var button = this;
|
||||
var id = button.getAttribute('data-taskid');
|
||||
ApiClient.stopScheduledTask(id).done(function () {
|
||||
ApiClient.stopScheduledTask(id).then(function () {
|
||||
|
||||
updateTaskButton(button, "");
|
||||
reloadList(page);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue