This commit is contained in:
Robin Appelman 2012-04-14 18:09:31 +02:00
parent 19243b3e91
commit 8113a43252
1 changed files with 2 additions and 2 deletions

View File

@ -29,14 +29,14 @@ $(document).ready(function(){
if(app){
if(active){
$.post(OC.filePath('settings','ajax','disableapp.php'),{appid:app},function(result){
if(!result || result.status!='succes'){
if(!result || result.status!='success'){
OC.dialogs.alert('Error','Error while disabling app');
}
},'json');
$('#leftcontent li[data-id="'+app+'"]').removeClass('active');
}else{
$.post(OC.filePath('settings','ajax','enableapp.php'),{appid:app},function(result){
if(!result || result.status!='succes'){
if(!result || result.status!='success'){
OC.dialogs.alert('Error','Error while enabling app');
}
},'json');