Basic initial subuser management

This commit is contained in:
Dane Everitt 2016-01-18 01:24:33 -05:00
parent 57cf636816
commit b7666bdb05
7 changed files with 381 additions and 1 deletions

View file

@ -448,10 +448,14 @@ $(window).load(function () {
data: JSON.stringify({ command: ccmd })
}).fail(function (jqXHR) {
console.error(jqXHR);
var error = 'An error occured while trying to process this request.';
if (typeof jqXHR.responseJSON !== 'undefined' && typeof jqXHR.responseJSON.error !== 'undefined') {
error = jqXHR.responseJSON.error;
}
swal({
type: 'error',
title: 'Whoops!',
text: 'There was an error while attempting to process your request. Please try again.'
text: error
});
}).done(function () {
$('#ccmd').val('');