15 lines
407 B
JavaScript
15 lines
407 B
JavaScript
|
$(function(){
|
||
|
|
||
|
$(".del_cat").click(function(event){/*Удаляем категорию*/
|
||
|
var id = $(this).attr('href');
|
||
|
$.ajax({
|
||
|
type: "POST",
|
||
|
url: '/act/page_cat',
|
||
|
data: "id=" + id,
|
||
|
success: function(d){/*alert(d);*/}
|
||
|
})
|
||
|
$( 'tr#' + id ).hide();
|
||
|
return false;
|
||
|
});
|
||
|
|
||
|
})
|