Nesting of comments in view, disabling comment form display button on button click

This commit is contained in:
Nathan Leniz
2015-03-07 01:57:09 +09:00
parent 53598a8e6f
commit 6910ed0aea
6 changed files with 168 additions and 94 deletions

View File

@@ -158,7 +158,7 @@ $(document).ready(function() {
upVotedByUsername: user.profile.username
};
$('#story-submit').unbind('click');
$.post('/stories/submit',
$.post('/stories/',
{
data: {
link: link,
@@ -192,7 +192,7 @@ $(document).ready(function() {
var data = $('#comment-box').val();
$('#comment-button').unbind('click');
$.post('/stories/comment/submit',
$.post('/stories/comment/',
{
data: {
associatedPost: storyId,