53 lines
1.2 KiB
JavaScript
53 lines
1.2 KiB
JavaScript
/**/
|
|
//кнопка отправки сообщения в модальном окошке
|
|
$("#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)*/}
|
|
});
|
|
})
|
|
|
|
$("#clearimg").click(function(event){
|
|
$.ajax({
|
|
type:"POST",
|
|
url:'/act/admin',
|
|
data:"act=clearimg",
|
|
success:function(data){ $(this).text(data) }
|
|
});
|
|
})
|
|
/*
|
|
$( ".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)}
|
|
});
|
|
}
|
|
});*/
|
|
|
|
|
|
|