From 2fa2b0ba094cb9b3084010bef254e6155d97118a Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Thu, 18 Jan 2018 18:55:39 +0100 Subject: [PATCH] pull-requests: don't report abort type of ajax requests as errors. --- rhodecode/templates/pullrequests/pullrequest.mako | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/rhodecode/templates/pullrequests/pullrequest.mako b/rhodecode/templates/pullrequests/pullrequest.mako index 6a08dbd7..4b382a19 100644 --- a/rhodecode/templates/pullrequests/pullrequest.mako +++ b/rhodecode/templates/pullrequests/pullrequest.mako @@ -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;