diff --git a/public/js/main.js b/public/js/main.js index 04e8ee4769..fa3d6e68f3 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -208,7 +208,7 @@ $(document).ready(function() { $('#comment-button').bind('click', commentSubmitButtonHandler); }) .done(function (data, textStatus, xhr) { - //window.location = '/stories/' + JSON.parse(data).storyLink; + window.location.reload(); }); }; diff --git a/views/stories/comments.jade b/views/stories/comments.jade index d8523b8fa2..cda4f4f62d 100644 --- a/views/stories/comments.jade +++ b/views/stories/comments.jade @@ -25,6 +25,7 @@ var div = document.createElement('div'); $(div) .html( + "
" + "
" + "
" + "
" + @@ -56,9 +57,10 @@ "" + "
" + "
" + + "
" + "
" ) - .addClass('comment row ' + offSetClass + ' ' + rowClass + ' comment_' + commentDetails._id) + .addClass(offSetClass + ' row ' + rowClass + ' comment_' + commentDetails._id) .appendTo($(containerSelector)); sentinel += commentDetails.comments.length; @@ -100,7 +102,7 @@ $('#submit-comment-to-comment').bind('click', submitCommentToCommentHandler); }) .done(function (data, textStatus, xhr) { - //window.location = '/stories/' + JSON.parse(data).storyLink; + window.location.reload(); }); };