##// END OF EJS Templates
pull-requests: switched alert to sweet alerts.
marcink -
r4322:08f73bc8 default
parent child Browse files
Show More
@@ -260,9 +260,10 b''
260 self.cachedDataSource[cacheKey] = data;
260 self.cachedDataSource[cacheKey] = data;
261 query.callback({results: data.results});
261 query.callback({results: data.results});
262 },
262 },
263 error: function(data, textStatus, errorThrown) {
263 error: function(jqXHR, textStatus, errorThrown) {
264 alert(
264 var prefix = "Error while fetching entries.\n"
265 "Error while fetching entries.\nError code {0} ({1}).".format(data.status, data.statusText));
265 var message = formatErrorMessage(jqXHR, textStatus, errorThrown, prefix);
266 ajaxErrorSwal(message);
266 }
267 }
267 });
268 });
268 }
269 }
@@ -312,11 +313,11 b''
312 }
313 }
313
314
314 loadRepoRefDiffPreview._currentRequest = $.get(url)
315 loadRepoRefDiffPreview._currentRequest = $.get(url)
315 .error(function(data, textStatus, errorThrown) {
316 .error(function(jqXHR, textStatus, errorThrown) {
316 if (textStatus !== 'abort') {
317 if (textStatus !== 'abort') {
317 alert(
318 var prefix = "Error while processing request.\n"
318 "Error while processing request.\nError code {0} ({1}).".format(
319 var message = formatErrorMessage(jqXHR, textStatus, errorThrown, prefix);
319 data.status, data.statusText));
320 ajaxErrorSwal(message);
320 }
321 }
321
322
322 })
323 })
@@ -503,8 +504,10 b''
503 targetRepoChanged(data);
504 targetRepoChanged(data);
504 loadRepoRefDiffPreview();
505 loadRepoRefDiffPreview();
505 },
506 },
506 error: function(data, textStatus, errorThrown) {
507 error: function(jqXHR, textStatus, errorThrown) {
507 alert("Error while fetching entries.\nError code {0} ({1}).".format(data.status, data.statusText));
508 var prefix = "Error while fetching entries.\n"
509 var message = formatErrorMessage(jqXHR, textStatus, errorThrown, prefix);
510 ajaxErrorSwal(message);
508 }
511 }
509 })
512 })
510
513
General Comments 0
You need to be logged in to leave comments. Login now