diff --git a/www/settings/inner.js b/www/settings/inner.js index 6ee8d4854..8feef06e4 100644 --- a/www/settings/inner.js +++ b/www/settings/inner.js @@ -487,7 +487,7 @@ define([ $button.click(function() { $spinner.show(); UI.confirm(Messages.settings_deleteConfirm, function(yes) { - if (!yes) { return; } + if (!yes) { return void $spinner.hide(); } sframeChan.query("Q_SETTINGS_DELETE_ACCOUNT", null, function(err, data) { // Owned drive if (data.state === true) { @@ -1568,6 +1568,7 @@ define([ .appendTo(APP.$leftside); APP.$usage = $('
', { 'class': 'usage' }).appendTo(APP.$leftside); var active = privateData.category || 'account'; + if (!categories[active]) { active = 'account'; } Object.keys(categories).forEach(function(key) { var $category = $('
', { 'class': 'cp-sidebarlayout-category',