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'); $('#open2fa').modal('show');
}).fail(function (jqXHR) { }).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); console.error(jqXHR);
}); });

View file

@ -72,7 +72,7 @@ class ActionsClass {
Files.list(); Files.list();
}).fail(jqXHR => { }).fail(jqXHR => {
console.error(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') { if (typeof jqXHR.responseJSON !== 'undefined' && typeof jqXHR.responseJSON.error !== 'undefined') {
error = jqXHR.responseJSON.error; error = jqXHR.responseJSON.error;
} }
@ -118,7 +118,7 @@ class ActionsClass {
swal.close(); swal.close();
}).fail(jqXHR => { }).fail(jqXHR => {
console.error(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') { if (typeof jqXHR.responseJSON !== 'undefined' && typeof jqXHR.responseJSON.error !== 'undefined') {
error = jqXHR.responseJSON.error; error = jqXHR.responseJSON.error;
} }
@ -198,7 +198,7 @@ class ActionsClass {
inputField.remove(); inputField.remove();
}).fail(jqXHR => { }).fail(jqXHR => {
console.error(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') { if (typeof jqXHR.responseJSON !== 'undefined' && typeof jqXHR.responseJSON.error !== 'undefined') {
error = jqXHR.responseJSON.error; error = jqXHR.responseJSON.error;
} }
@ -255,7 +255,7 @@ class ActionsClass {
Files.list(); Files.list();
}).fail(jqXHR => { }).fail(jqXHR => {
console.error(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') { if (typeof jqXHR.responseJSON !== 'undefined' && typeof jqXHR.responseJSON.error !== 'undefined') {
error = jqXHR.responseJSON.error; error = jqXHR.responseJSON.error;
} }
@ -315,7 +315,7 @@ class ActionsClass {
type: 'error', type: 'error',
title: 'Whoops!', title: 'Whoops!',
html: true, 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', type: 'error',
title: 'Whoops!', title: 'Whoops!',
html: true, 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); Files.list(compPath);
}).fail(jqXHR => { }).fail(jqXHR => {
console.error(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') { if (typeof jqXHR.responseJSON !== 'undefined' && typeof jqXHR.responseJSON.error !== 'undefined') {
error = jqXHR.responseJSON.error; error = jqXHR.responseJSON.error;
} }
@ -516,7 +516,7 @@ class ActionsClass {
}); });
}).fail(jqXHR => { }).fail(jqXHR => {
console.error(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') { if (typeof jqXHR.responseJSON !== 'undefined' && typeof jqXHR.responseJSON.error !== 'undefined') {
error = jqXHR.responseJSON.error; error = jqXHR.responseJSON.error;
} }

View file

@ -71,7 +71,7 @@ class FileManager {
swal({ swal({
type: 'error', type: 'error',
title: 'File 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); console.error(jqXHR);
}); });

View file

@ -54,7 +54,7 @@ $(document).ready(function () {
swal({ swal({
type: 'error', type: 'error',
title: 'Whoops!', 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({ swal({
type: 'error', type: 'error',
title: 'Whoops!', 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({ swal({
type: 'error', type: 'error',
title: 'Whoops!', title: 'Whoops!',
text: 'An error occured while attempting to toggle this schedule.' text: 'An error occurred while attempting to toggle this schedule.'
}); });
}); });
}); });

View file

@ -93,7 +93,7 @@
swal({ swal({
type: 'error', type: 'error',
title: 'Whoops!', title: 'Whoops!',
text: 'An error occured while attempting to revoke this key.' text: 'An error occurred while attempting to revoke this key.'
}); });
}); });
}); });

View file

@ -141,7 +141,7 @@
swal({ swal({
type: 'error', type: 'error',
title: 'Whoops!', title: 'Whoops!',
text: (typeof jqXHR.responseJSON.error !== 'undefined') ? jqXHR.responseJSON.error : 'An error occured while processing this request.' text: (typeof jqXHR.responseJSON.error !== 'undefined') ? jqXHR.responseJSON.error : 'An error occurred while processing this request.'
}); });
}); });
}); });
@ -163,7 +163,7 @@
}); });
}).fail(function(jqXHR, textStatus, errorThrown) { }).fail(function(jqXHR, textStatus, errorThrown) {
console.error(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') { if (typeof jqXHR.responseJSON !== 'undefined' && typeof jqXHR.responseJSON.error !== 'undefined') {
error = jqXHR.responseJSON.error; error = jqXHR.responseJSON.error;
} }

View file

@ -113,7 +113,7 @@
swal({ swal({
type: 'error', type: 'error',
title: 'Whoops!', title: 'Whoops!',
text: 'An error occured while attempting to revoke this key.' text: 'An error occurred while attempting to revoke this key.'
}); });
}); });
}); });

View file

@ -148,7 +148,7 @@
block.parent().parent().find('[data-attr="set-password"]').html(data.password); block.parent().parent().find('[data-attr="set-password"]').html(data.password);
}).fail(function(jqXHR) { }).fail(function(jqXHR) {
console.error(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') { if (typeof jqXHR.responseJSON !== 'undefined' && typeof jqXHR.responseJSON.error !== 'undefined') {
error = jqXHR.responseJSON.error; error = jqXHR.responseJSON.error;
} }
@ -188,7 +188,7 @@
swal({ swal({
type: 'error', type: 'error',
title: 'Whoops!', title: 'Whoops!',
text: (typeof jqXHR.responseJSON.error !== 'undefined') ? jqXHR.responseJSON.error : 'An error occured while processing this request.' text: (typeof jqXHR.responseJSON.error !== 'undefined') ? jqXHR.responseJSON.error : 'An error occurred while processing this request.'
}); });
}); });
}); });

View file

@ -103,7 +103,7 @@
self.removeClass('btn-default').addClass('btn-success disabled').html('{{ trans('strings.primary') }}'); self.removeClass('btn-default').addClass('btn-success disabled').html('{{ trans('strings.primary') }}');
}).fail(function(jqXHR) { }).fail(function(jqXHR) {
console.error(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') { if (typeof jqXHR.responseJSON !== 'undefined' && typeof jqXHR.responseJSON.error !== 'undefined') {
error = jqXHR.responseJSON.error; error = jqXHR.responseJSON.error;
} }

View file

@ -114,7 +114,7 @@
}); });
}).fail(function (jqXHR) { }).fail(function (jqXHR) {
console.error(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') { if (typeof jqXHR.responseJSON !== 'undefined' && typeof jqXHR.responseJSON.error !== 'undefined') {
error = jqXHR.responseJSON.error; error = jqXHR.responseJSON.error;
} }