Kamis, 1 Januari 1970 07:00 WIB
Komentar
"); $("#totalcomment").html(data.total); $("#comment_total_input").val(data.total); $.getJSON("http://www.tribunnews.com/ajax/get_comment?callback=?", {type: 'articles',id: '',tn_id: '9',start : '0'}, function(data) { $("#loadrep").remove(); var sort = 0; $.each(data.posts, function(key, val) { if(val.username) user = ""+val.name+""; else user = val.name if(val.child != '0') child = ""+val.child+" Balasan"; else child = "Balas"; if(val.like != '0') { if(val.likeyou == '1') like = "And menyukai ini-"+val.like+" orang"; else like = "Suka-"+val.like+" orang"; } else { like = "Suka"; } $("#commentins").append(""+val.comment+"
"+child+like+"
"+val.comment+"
"+child+like+"
"+$("#img_ucom").html()+"
"+$("#link_ucom").html()+"-beberapa detik lalu
"+$("#sendcomment"+cid+" textarea").val()+"
"); else $("#commentins"+cid).append(""+$("#img_ucom").html()+"
"+$("#link_ucom").html()+"-beberapa detik lalu
"+$("#sendcomment"+cid+" textarea").val()+"
"); $("#sendcomment"+cid+" input").attr('disabled', 'disabled'); } else { idform.children(".message").show().html(data.status); idform.children(".button").removeAttr('disabled'); } idform.children(".loading").hide(); }); return false; } function replayc(cid,child){ if($("#replay"+cid).is(':hidden')) { $("#replay"+cid).show(); } else { var insertform = $("#commentform").html(); $("#replay"+cid).show(); $("#replay"+cid).attr("class","pt10"); $("#replay"+cid).html(insertform); $("#replay"+cid).prepend("") $("#replay"+cid).prepend(""); if(child) { $.getJSON("http://www.tribunnews.com/ajax/get_comment?callback=?", {type: 'articles',id: '',parent_id:(cid),p : '0',tn_id: '9'}, function(data) { $("#loadrep").remove(); $.each(data.posts, function(key, val) { if(val.username) user = ""+val.name+""; else user = val.name; if(val.like != '0') { if(val.likeyou == '1') like = "Suka-"+val.like+" orang"; else like = "Suka-"+val.like+" orang"; } else { like = "Suka"; } $("#commentins"+cid).append("
0 komentar:
Posting Komentar