Improve detection of installations errors

remotes/origin/stable6
Brice Maron 12 years ago
parent bbeb657c03
commit 24d471af29
  1. 8
      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');
}
},

Loading…
Cancel
Save