diff options
author | Brice Maron <brice@bmaron.net> | 2013-03-23 15:19:43 +0400 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2013-03-23 15:19:43 +0400 |
commit | 85613cc66c90b56c9f1b655fed0727ff7a7a6f43 (patch) | |
tree | 3afd8334e5194c5fcf5e986496f57231e91c6208 /settings | |
parent | 7de540b8ee6964050d0bcfe2394ba692132d2640 (diff) |
Improve detection of installations errors
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'); } }, |