diff options
author | Brice Maron <brice@bmaron.net> | 2013-03-23 12:19:43 +0100 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2013-03-23 13:47:42 +0100 |
commit | 24d471af294938a6f89af74710ecb8d6bd1e33b5 (patch) | |
tree | 51b9b437e8515e11e7eeded86418d74fb8f820e4 /settings | |
parent | bbeb657c03f5e036aaa31c4c843bdf3865974dfa (diff) | |
download | nextcloud-server-24d471af294938a6f89af74710ecb8d6bd1e33b5.tar.gz nextcloud-server-24d471af294938a6f89af74710ecb8d6bd1e33b5.zip |
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'); } }, |