diff options
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/apps.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js index 43013a9e1ec..dd20bc0a9c5 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -75,7 +75,13 @@ OC.Settings.Apps = OC.Settings.Apps || { element.data('active',true); element.val(t('settings','Disable')); } - },'json'); + },'json') + .fail(function() { + OC.dialogs.alert('Error while enabling app','Error'); + element.data('active',false); + OC.Settings.Apps.removeNavigation(appid); + element.val(t('settings','Enable')); + }); $('#leftcontent li[data-id="'+appid+'"]').addClass('active'); } }, |