swap enable and dissable error messages
This commit is contained in:
parent
d8864d4f4b
commit
386663ddb6
|
@ -30,14 +30,14 @@ $(document).ready(function(){
|
||||||
if(active){
|
if(active){
|
||||||
$.post(OC.filePath('settings','ajax','disableapp.php'),{appid:app},function(result){
|
$.post(OC.filePath('settings','ajax','disableapp.php'),{appid:app},function(result){
|
||||||
if(!result || result.status!='succes'){
|
if(!result || result.status!='succes'){
|
||||||
OC.dialogs.alert('Error','Error while enabling app');
|
OC.dialogs.alert('Error','Error while disabling app');
|
||||||
}
|
}
|
||||||
},'json');
|
},'json');
|
||||||
$('#leftcontent li[data-id="'+app+'"]').removeClass('active');
|
$('#leftcontent li[data-id="'+app+'"]').removeClass('active');
|
||||||
}else{
|
}else{
|
||||||
$.post(OC.filePath('settings','ajax','enableapp.php'),{appid:app},function(result){
|
$.post(OC.filePath('settings','ajax','enableapp.php'),{appid:app},function(result){
|
||||||
if(!result || result.status!='succes'){
|
if(!result || result.status!='succes'){
|
||||||
OC.dialogs.alert('Error','Error while disabling app');
|
OC.dialogs.alert('Error','Error while enabling app');
|
||||||
}
|
}
|
||||||
},'json');
|
},'json');
|
||||||
$('#leftcontent li[data-id="'+app+'"]').addClass('active');
|
$('#leftcontent li[data-id="'+app+'"]').addClass('active');
|
||||||
|
|
Loading…
Reference in New Issue