‘);
$ ( ‘.commenti & Gt; ul’). Append (el.find ( ‘ul’). First (). Html ());
if (el.find ( ‘. showMore’). length == 0) {
$ ( ‘.commenti .showMore’). Remove ();
showMore = false;
}
$ ( ‘Html, body’). Animate ({scrollTop: TOPLAST}, 1000);
$ ( ‘# A522c542-f690-416c-bd27-f81569cac1e9 .loading’). Hide ();
}
});
}
$ ( ‘.commenti .showMore’). Click (showMoreComments);
});
‘);
Form.append $ ( ‘
‘);
$ Form.hide ();
$ (This) .closest ( ‘div’). First (). After ($ form);
Form.wrap $ ( ‘
‘);
}
$ Form.toggle ();
$ Form_report.hide ();
});
$ (Document) .on ( ‘click’, ‘. .vc_report Comments’, function () {
$ ( ‘.commenti .vc_report_comment_box Form’). Not ($ (this) .closest ( ‘them’). Find ( ‘form’)) .hide ();
var $ form = $ (this) .closest ( ‘them’). find ( ‘& gt; .vc_report_comment_box form’);
form_comment $ var = $ (this) .closest ( ‘them’). find ( ‘& gt; .posta_commenti form’);
if ($ form.length == 0) {
$ Form = $ ( ‘
‘). Attr ( ‘method’, ‘post’). Attr ( ‘action’, ‘/actions/report.jsp’);
Form.append $ ( ‘‘);
Form.append $ ( ‘‘);
Form.append $ ( ‘
‘);
Form.append $ ( ‘
‘);
$ Form.hide ();
$ (This) .closest ( ‘div’). First (). After ($ form);
Form.wrap $ ( ‘
‘);
Form.submit $ (function () {
var text = $ (this) .find ( ‘[name = text]‘). val ();
if (text == ”) {
$ .Confirm ({
‘Title’: ‘Error!’,
‘Message’: ‘Add text’,
‘Buttons’: { ‘Ok’: { ‘class’: ‘blue’}}
});
} Else {
$ .ajax ({
url: $ (this) .attr ( ‘action’),
date: $ (this) .serialize ()
dataType: ‘json’,
success: function (response) {
if (response.askForLogin) {
openPopupLogin ();
} Else {
$ .Confirm ({
‘Title’: ”,
‘Message’: ‘Its recommendation has been sent successfully’,
‘Buttons’: { ‘Ok’: { ‘class’: ‘blue’, ‘action’: function () {location.href = parent.location.href; }}}
});
}
}
});
}
return false;
});
}
$ Form.toggle ();
$ Form_comment.hide ();
});
$ (Document) .on ( ‘focus’, ‘. .post_commenti_form Comments textarea [name = "text"]‘, function () {
if ($ (this) .val () == ‘Text’) {
$ (This) .val ( ”);
}
});
$ (Document) .on ( ‘blur’, ‘. .post_commenti_form Comments textarea [name = "text"]‘, function () {
if ($ (this) .val (). replace (/ / g, ”). length == 0) {
$ (This) .val ( ‘text’);
}
});
$ (Document) .on ( ‘change keyup’, ‘. .post_commenti_form Comments textarea [name = "text"]‘, function () {
if ($ (this) .val (). length & gt; MAX_CHARACTERS) {
$ (This) .val ($ (this) .val (). Substring (0, MAX_CHARACTERS));
}
$ (This) .closest ( ‘form’). Find ( ‘. Commentodispo’). Html (max_characters- $ (this) .val (). Length);
});
No comments:
Post a Comment