parent
0f0d37b85c
commit
d38e958ada
@ -0,0 +1,9 @@ |
||||
<?php |
||||
|
||||
// Init owncloud |
||||
require_once('../../lib/base.php'); |
||||
header( "Content-Type: application/jsonrequest" ); |
||||
|
||||
OC_APP::disable($_POST['appid']); |
||||
|
||||
?> |
||||
@ -0,0 +1,9 @@ |
||||
<?php |
||||
|
||||
// Init owncloud |
||||
require_once('../../lib/base.php'); |
||||
header( "Content-Type: application/jsonrequest" ); |
||||
|
||||
OC_APP::enable($_POST['appid']); |
||||
|
||||
?> |
||||
@ -0,0 +1,17 @@ |
||||
$("div[x-use='appenableddiv']").live( "click", function(){ |
||||
appid = $(this).parent().parent().attr("x-uid"); |
||||
|
||||
if($(this).text() == "enabled"){ |
||||
$(this).html( "disabled" ); |
||||
$(this).parent().removeClass( "enabled" ); |
||||
$(this).parent().addClass( "disabled" ); |
||||
//$.post( "ajax/disableapp.php", $(appid).serialize(), function(data){} );
|
||||
$.post( "ajax/disableapp.php", { appid: appid }, function(data){ alert(data.status);}); |
||||
} |
||||
else if($(this).text() == "disabled"){ |
||||
$(this).html( "enabled" ); |
||||
$(this).parent().removeClass( "disabled" ); |
||||
$(this).parent().addClass( "enabled" ); |
||||
$.post( "ajax/enableapp.php", { appid: appid }, function(data){ alert(data.status);} ); |
||||
} |
||||
}); |
||||
Loading…
Reference in new issue