mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
Toolbar/Actioneer callback cleanup
This commit is contained in:
parent
1df9c49c46
commit
cdf34d5676
8 changed files with 22 additions and 23 deletions
|
@ -30,8 +30,8 @@ define(['Commands/CommandController', 'Shared/Messenger'],
|
|||
});
|
||||
}
|
||||
|
||||
if (options.successCallback) {
|
||||
options.successCallback.call(options.context);
|
||||
if (options.onSuccess) {
|
||||
options.onSuccess.call(options.context);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -47,8 +47,8 @@ define(['Commands/CommandController', 'Shared/Messenger'],
|
|||
});
|
||||
}
|
||||
|
||||
if (options.failCallback) {
|
||||
options.failCallback.call(options.context);
|
||||
if (options.onError) {
|
||||
options.onError.call(options.context);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -63,8 +63,8 @@ define(['Commands/CommandController', 'Shared/Messenger'],
|
|||
options.element.removeClass('icon-nd-spinner');
|
||||
}
|
||||
|
||||
if (options.alwaysCallback) {
|
||||
options.alwaysCallback.call(options.context);
|
||||
if (options.always) {
|
||||
options.always.call(options.context);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue