This commit is contained in:
Raphael Michel
2019-11-06 15:42:20 +01:00
parent 03a06b6997
commit ea71b1f04e
2 changed files with 2 additions and 2 deletions

View File

@@ -122,7 +122,7 @@ function async_task_error(jqXHR, textStatus, errorThrown) {
"use strict"; "use strict";
$("body").data('ajaxing', false); $("body").data('ajaxing', false);
if (textStatus === "timeout") { if (textStatus === "timeout") {
alert(gettext("The request took to long. Please try again.")); alert(gettext("The request took too long. Please try again."));
waitingDialog.hide(); waitingDialog.hide();
} else if (jqXHR.responseText.indexOf('<html') > 0) { } else if (jqXHR.responseText.indexOf('<html') > 0) {
var respdom = $(jqXHR.responseText); var respdom = $(jqXHR.responseText);

View File

@@ -18,7 +18,7 @@ function preview_task_error(item) {
$('#' + item + '_panel').data('ajaxing', false); $('#' + item + '_panel').data('ajaxing', false);
$('#' + item + '_preview div').text(gettext('An error has occurred.')); $('#' + item + '_preview div').text(gettext('An error has occurred.'));
if (textStatus === "timeout") { if (textStatus === "timeout") {
alert(gettext("The request took to long. Please try again.")); alert(gettext("The request took too long. Please try again."));
} else { } else {
if (jqXHR.status >= 400 && jqXHR.status < 500) { if (jqXHR.status >= 400 && jqXHR.status < 500) {
alert(gettext('An error of type {code} occurred.').replace(/\{code\}/, jqXHR.status)); alert(gettext('An error of type {code} occurred.').replace(/\{code\}/, jqXHR.status));