fix a deprecation in jQuery 3.0
https://api.jquery.com/jQuery.ajax/#jqXHR jqXHR.error() callback removed.10.7.0-preview
parent
3a0e183a21
commit
27f509ca23
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue