This commit is contained in:
Alexey Skobkin 2015-01-15 18:37:28 +04:00
parent 2a5e9da2d8
commit 4203ba62ed

View file

@ -557,7 +557,7 @@ $(document).ready(function() {
evt.stopPropagation();
evt.preventDefault();
var $post = $(this).parents('.post:first');
var $post = $(this).parents('.post').first();
var csRf = $(this).siblings('input[name="csrf_token"]').val();
$.ajax({
@ -711,7 +711,7 @@ function create_comment_elements(commentData, onCommentCreated) {
// Data for template
var userLink = '//' + commentData.author + '.point.im/';
var csRfToken = $('.reply-form:first input[name="csrf_token"]').val();
var csRfToken = $('.reply-form input[name="csrf_token"]').first().val();
// Filling template
// Date and time