fix a deprecation in jQuery 3.0

https://api.jquery.com/jQuery.ajax/#jqXHR
jqXHR.error() callback removed.
10.7.0-preview
Kyle K 2019-08-09 09:11:47 +00:00
parent 3a0e183a21
commit 27f509ca23
1 changed files with 3 additions and 2 deletions

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();
}