1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-16 21:05:30 +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:
Kyle K 2019-08-09 09:11:47 +00:00
parent 3a0e183a21
commit 27f509ca23

View file

@ -52,9 +52,10 @@ JenkinsLoader.prototype.loadJobs = function (viewName, callback) {
chrome.storage.local.set(object);
wrappedCallback(jobs);
}).error(xhr => {
}).fail(xhr => {
GUI.log(i18n.getMessage('buildServerLoadFailed', ['jobs', `HTTP ${xhr.status}`]));
}).fail(cachedCallback);
cachedCallback();
});
} else {
cachedCallback();
}