pull-requests: don't report abort type of ajax requests as errors.
This commit is contained in:
parent
a923fc7303
commit
2fa2b0ba09
1 changed files with 6 additions and 3 deletions
|
|
@ -313,9 +313,12 @@ $(function(){
|
|||
|
||||
loadRepoRefDiffPreview._currentRequest = $.get(url)
|
||||
.error(function(data, textStatus, errorThrown) {
|
||||
alert(
|
||||
"Error while processing request.\nError code {0} ({1}).".format(
|
||||
data.status, data.statusText));
|
||||
if (textStatus !== 'abort') {
|
||||
alert(
|
||||
"Error while processing request.\nError code {0} ({1}).".format(
|
||||
data.status, data.statusText));
|
||||
}
|
||||
|
||||
})
|
||||
.done(function(data) {
|
||||
loadRepoRefDiffPreview._currentRequest = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue