aboutsummaryrefslogtreecommitdiffstats
path: root/admin/js/apps.js
blob: 4def5ed5553aae28f111e8f77a788fa69efb2213 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$("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);
	}
});