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) }
|
|
|
|
});
|
2023-01-24 15:51:26 +05:00
|
|
|
})
|
|
|
|
/*
|
|
|
|
$( ".ibox" ).draggable({ //cancel: ".ibox-head, .ibox-body",
|
|
|
|
stop: function() {
|
|
|
|
var offset = $(this).offset();
|
|
|
|
var xPos = offset.left;
|
|
|
|
var yPos = offset.top;
|
|
|
|
$.ajax({
|
|
|
|
type:"POST",
|
|
|
|
url:'/act/admin',
|
|
|
|
data:"act=savePos&elem=" + $(this).data('elem') + "&x=" + xPos + "&y=" + yPos,
|
|
|
|
success:function(data){/*alert(data)}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});*/
|
|
|
|
|
|
|
|
|
|
|
|
|