mirror of
https://github.com/nextcloud/server.git
synced 2026-02-17 01:41:05 -05:00
17 lines
No EOL
517 B
JavaScript
17 lines
No EOL
517 B
JavaScript
$("input[x-use='appenablebutton']").live( "click", function(){
|
|
appid = $(this).parent().data("uid");
|
|
|
|
//alert("dsfsdfsdf");
|
|
if($(this).val() == "enabled"){
|
|
$(this).attr("value","disabled");
|
|
$(this).removeClass( "enabled" );
|
|
$(this).addClass( "disabled" );
|
|
$.post( "ajax/disableapp.php", 'appid='+appid);
|
|
}
|
|
else if($(this).val() == "disabled"){
|
|
$(this).attr("value","enabled");
|
|
$(this).removeClass( "disabled" );
|
|
$(this).addClass( "enabled" );
|
|
$.post( "ajax/enableapp.php", 'appid='+appid);
|
|
}
|
|
}); |