forked from CGM_Public/pretix_original
Fix typo
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user