let lock_recomment = false;
function recommendArticle() {
if (lock_recomment) {
return;
}
lock_recomment = true;
jQuery.ajax({
type: "post",
url: "./recommend.ajax.php",
catche:false,
data: {bo_table:"free", wr_id:"10622461"},
dataType : "json",
success: function(res) {
lock_recomment = false;
alert(res.msg);
switch (res.code) {
case "success" :
$('#recommendButtonNew span').html(
parseInt($('#recommendButtonNew span').html()) + 1
);
$('.artc_info .count_reply span').html(
parseInt($('.artc_info .count_reply span').html()) + 1
);
break;
default :
return false;
break;
}
},
error: function(res) {
lock_recomment = false;
}
});
}