$(document).ready(function(){var comment_post_id=$('#comment_post_id').val();$("#comments").load("../../commentPostsGet.php",{comment_post_id:comment_post_id});var working=false;$("#addComment").click(function(){if(working)return false;working=true;$('#addComment').val('Working..');var comment_user_id=$('#comment_user_id').val();var comment_post_id=$('#comment_post_id').val();var comment_content=$('#comment_content').val();$.post("../../commentPostsSubmit.php",{comment_user_id:comment_user_id,comment_post_id:comment_post_id,comment_content:comment_content},function(response)
{$("#comments").load("../../commentPostsGet.php",{comment_post_id:comment_post_id});$("#comment_content").val('');})
$('#addComment').val('Post Comment');return false;})});
