mirror of
https://bitbucket.org/skobkin/chrome_point_plus.git
synced 2024-12-28 17:24:20 +00:00
First!
This commit is contained in:
parent
2a5e9da2d8
commit
4203ba62ed
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue