This commit is contained in:
Lance Pioch
2018-05-13 10:24:07 -04:00
parent 84edec6323
commit c6c37e1b88
10 changed files with 21 additions and 21 deletions

View File

@@ -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);
});

View File

@@ -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;
}

View File

@@ -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);
});

View File

@@ -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.'
});
});
});