occurred
This commit is contained in:
parent
84edec6323
commit
c6c37e1b88
10 changed files with 21 additions and 21 deletions
|
@ -44,7 +44,7 @@ var TwoFactorModal = (function () {
|
|||
});
|
||||
$('#open2fa').modal('show');
|
||||
}).fail(function (jqXHR) {
|
||||
alert('An error occured while attempting to load the 2FA setup modal. Please try again.');
|
||||
alert('An error occurred while attempting to load the 2FA setup modal. Please try again.');
|
||||
console.error(jqXHR);
|
||||
});
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ class ActionsClass {
|
|||
Files.list();
|
||||
}).fail(jqXHR => {
|
||||
console.error(jqXHR);
|
||||
var error = 'An error occured while trying to process this request.';
|
||||
var error = 'An error occurred while trying to process this request.';
|
||||
if (typeof jqXHR.responseJSON !== 'undefined' && typeof jqXHR.responseJSON.error !== 'undefined') {
|
||||
error = jqXHR.responseJSON.error;
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ class ActionsClass {
|
|||
swal.close();
|
||||
}).fail(jqXHR => {
|
||||
console.error(jqXHR);
|
||||
var error = 'An error occured while trying to process this request.';
|
||||
var error = 'An error occurred while trying to process this request.';
|
||||
if (typeof jqXHR.responseJSON !== 'undefined' && typeof jqXHR.responseJSON.error !== 'undefined') {
|
||||
error = jqXHR.responseJSON.error;
|
||||
}
|
||||
|
@ -198,7 +198,7 @@ class ActionsClass {
|
|||
inputField.remove();
|
||||
}).fail(jqXHR => {
|
||||
console.error(jqXHR);
|
||||
var error = 'An error occured while trying to process this request.';
|
||||
var error = 'An error occurred while trying to process this request.';
|
||||
if (typeof jqXHR.responseJSON !== 'undefined' && typeof jqXHR.responseJSON.error !== 'undefined') {
|
||||
error = jqXHR.responseJSON.error;
|
||||
}
|
||||
|
@ -255,7 +255,7 @@ class ActionsClass {
|
|||
Files.list();
|
||||
}).fail(jqXHR => {
|
||||
console.error(jqXHR);
|
||||
var error = 'An error occured while trying to process this request.';
|
||||
var error = 'An error occurred while trying to process this request.';
|
||||
if (typeof jqXHR.responseJSON !== 'undefined' && typeof jqXHR.responseJSON.error !== 'undefined') {
|
||||
error = jqXHR.responseJSON.error;
|
||||
}
|
||||
|
@ -315,7 +315,7 @@ class ActionsClass {
|
|||
type: 'error',
|
||||
title: 'Whoops!',
|
||||
html: true,
|
||||
text: 'An error occured while attempting to delete this file. Please try again.',
|
||||
text: 'An error occurred while attempting to delete this file. Please try again.',
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -433,7 +433,7 @@ class ActionsClass {
|
|||
type: 'error',
|
||||
title: 'Whoops!',
|
||||
html: true,
|
||||
text: 'An error occured while attempting to delete these files. Please try again.',
|
||||
text: 'An error occurred while attempting to delete these files. Please try again.',
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -476,7 +476,7 @@ class ActionsClass {
|
|||
Files.list(compPath);
|
||||
}).fail(jqXHR => {
|
||||
console.error(jqXHR);
|
||||
var error = 'An error occured while trying to process this request.';
|
||||
var error = 'An error occurred while trying to process this request.';
|
||||
if (typeof jqXHR.responseJSON !== 'undefined' && typeof jqXHR.responseJSON.error !== 'undefined') {
|
||||
error = jqXHR.responseJSON.error;
|
||||
}
|
||||
|
@ -516,7 +516,7 @@ class ActionsClass {
|
|||
});
|
||||
}).fail(jqXHR => {
|
||||
console.error(jqXHR);
|
||||
var error = 'An error occured while trying to process this request.';
|
||||
var error = 'An error occurred while trying to process this request.';
|
||||
if (typeof jqXHR.responseJSON !== 'undefined' && typeof jqXHR.responseJSON.error !== 'undefined') {
|
||||
error = jqXHR.responseJSON.error;
|
||||
}
|
||||
|
|
|
@ -71,7 +71,7 @@ class FileManager {
|
|||
swal({
|
||||
type: 'error',
|
||||
title: 'File Error',
|
||||
text: jqXHR.responseJSON.errors[0].detail || 'An error occured while attempting to process this request. Please try again.',
|
||||
text: jqXHR.responseJSON.errors[0].detail || 'An error occurred while attempting to process this request. Please try again.',
|
||||
});
|
||||
console.error(jqXHR);
|
||||
});
|
||||
|
|
|
@ -54,7 +54,7 @@ $(document).ready(function () {
|
|||
swal({
|
||||
type: 'error',
|
||||
title: 'Whoops!',
|
||||
text: 'An error occured while attempting to delete this schedule.'
|
||||
text: 'An error occurred while attempting to delete this schedule.'
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -93,7 +93,7 @@ $(document).ready(function () {
|
|||
swal({
|
||||
type: 'error',
|
||||
title: 'Whoops!',
|
||||
text: 'An error occured while attempting to trigger this schedule.'
|
||||
text: 'An error occurred while attempting to trigger this schedule.'
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -136,7 +136,7 @@ $(document).ready(function () {
|
|||
swal({
|
||||
type: 'error',
|
||||
title: 'Whoops!',
|
||||
text: 'An error occured while attempting to toggle this schedule.'
|
||||
text: 'An error occurred while attempting to toggle this schedule.'
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue