26 lines
667 B
JavaScript
Executable File
26 lines
667 B
JavaScript
Executable File
/**/
|
|
//кнопка отправки сообщения в модальном окошке
|
|
$("#admin_zametki").keyup(function(event){
|
|
var txt = $(this).val();
|
|
$.ajax({
|
|
type:"POST",
|
|
url:'/act/admin',
|
|
data:"act=save&txt=" + txt,
|
|
success:function(data){/*alert(data)*/}
|
|
});
|
|
})
|
|
|
|
$("#taskStatus").click(function(event){
|
|
var id=$(this).data('id');
|
|
if ($(this).is(':checked')){
|
|
var status="1";
|
|
} else {
|
|
var status="0";
|
|
}
|
|
$.ajax({
|
|
type:"POST",
|
|
url:'/act/admin',
|
|
data:"act=saveTaskStatus&status=" + status + "&id=" + id,
|
|
success:function(data){/*alert(data)*/}
|
|
});
|
|
}) |