2022-12-11 13:55:49 +05:00
|
|
|
/**/
|
|
|
|
//кнопка отправки сообщения в модальном окошке
|
|
|
|
$("#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)*/}
|
|
|
|
});
|
|
|
|
})
|
2022-12-17 18:15:09 +05:00
|
|
|
|
|
|
|
$("#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)*/}
|
|
|
|
});
|
2023-01-02 21:33:36 +05:00
|
|
|
})
|
|
|
|
|
|
|
|
$("#clearimg").click(function(event){
|
|
|
|
$.ajax({
|
|
|
|
type:"POST",
|
|
|
|
url:'/act/admin',
|
|
|
|
data:"act=clearimg",
|
|
|
|
success:function(data){ $(this).text(data) }
|
|
|
|
});
|
2022-12-11 13:55:49 +05:00
|
|
|
})
|