mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-22 15:55:33 +03:00
fix a deprecation in jQuery 3.0
https://api.jquery.com/jQuery.ajax/#jqXHR jqXHR.error() callback removed.
This commit is contained in:
parent
3a0e183a21
commit
27f509ca23
1 changed files with 3 additions and 2 deletions
|
@ -52,9 +52,10 @@ JenkinsLoader.prototype.loadJobs = function (viewName, callback) {
|
||||||
chrome.storage.local.set(object);
|
chrome.storage.local.set(object);
|
||||||
|
|
||||||
wrappedCallback(jobs);
|
wrappedCallback(jobs);
|
||||||
}).error(xhr => {
|
}).fail(xhr => {
|
||||||
GUI.log(i18n.getMessage('buildServerLoadFailed', ['jobs', `HTTP ${xhr.status}`]));
|
GUI.log(i18n.getMessage('buildServerLoadFailed', ['jobs', `HTTP ${xhr.status}`]));
|
||||||
}).fail(cachedCallback);
|
cachedCallback();
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
cachedCallback();
|
cachedCallback();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue