Skip to content

Commit 27f509c

Browse files
committed
fix a deprecation in jQuery 3.0
https://api.jquery.com/jQuery.ajax/#jqXHR jqXHR.error() callback removed.
1 parent 3a0e183 commit 27f509c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/js/jenkins_loader.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@ JenkinsLoader.prototype.loadJobs = function (viewName, callback) {
5252
chrome.storage.local.set(object);
5353

5454
wrappedCallback(jobs);
55-
}).error(xhr => {
55+
}).fail(xhr => {
5656
GUI.log(i18n.getMessage('buildServerLoadFailed', ['jobs', `HTTP ${xhr.status}`]));
57-
}).fail(cachedCallback);
57+
cachedCallback();
58+
});
5859
} else {
5960
cachedCallback();
6061
}

0 commit comments

Comments
 (0)