// // Для формы комментариев // var form_valid; jQuery.extend(jQuery.fn, { /* * функция проверки, что длина поля не меньше 3х символов */ checka: function () { if (jQuery(this).val().length Отменить ответ'); //data-onclick='return addComment.moveForm( "comment-2654", "2654", "respond", "13115" )' /* Для ВП 4 var args = $(this).data('onclick'); if (args) { args = args.replace(/.*\(|\)/gi, '').replace(/\"|\s+/g, ''); args = args.split(','); } */ //data-commentid="10874" data-postid="13390" data-belowelement="comment-10874" data-respondelement="respond" aria-label="Комментарий к записи Диана" // Для ВП 5 let args = [$(this).attr('data-belowelement'), $(this).attr('data-commentid'), $(this).attr('data-respondelement'), $(this).attr('data-postid')]; gribId = args[3]; tinymce.EditorManager.execCommand('mceRemoveEditor', true, 'comment'); addComment.moveForm.apply(addComment, args); setInterval(function () { tinymce.EditorManager.execCommand('mceAddEditor', true, 'comment'); }, 500); //tinymce.EditorManager.execCommand('mceAddEditor', true, 'comment'); }); $("#commentform").tmcefBindFirst('submit', function () { if ($("#comment").length > 0) { $("#comment").val(tinymce.activeEditor.getContent()); } }); $(document).on('click', '#cancel-comment-reply-link', function (e) { }); $(document).on('click', '#cancel-comment-reply-link', function (e) { $('#reply-title').html('Прокомментируйте данный гриб (id: '+gribId+') '); }); }); jQuery(document).ready(function($) { if (typeof addComment != 'undefined') { addComment.moveForm = function (commId, parentId, respondId, postId) { var t = this, div, comm = commId, respond = respondId, cancel = document.getElementById('cancel-comment-reply-link'), parent = document.getElementById('comment_parent'), post = document.getElementById('comment_post_ID'); if (!comm || !respond || !cancel || !parent) return; t.respondId = respondId; postId = postId || false; if (!document.getElementById('wp-temp-form-div')) { div = document.createElement('div'); div.id = 'wp-temp-form-div'; div.style.display = 'none'; document.getElementById(respond).parentNode.insertBefore(div, document.getElementById(respond)); } document.getElementById(comm).parentNode.insertBefore(document.getElementById(respond), document.getElementById(comm).nextSibling); if (post && postId) post.value = postId; parent.value = parentId; cancel.style.display = ''; cancel.onclick = function (e) { //e.preventDefault(); tinymce.activeEditor.setContent(""); tinymce.EditorManager.execCommand('mceRemoveEditor', true, 'comment'); var t = addComment, temp = document.getElementById('wp-temp-form-div'), respond = document.getElementById(t.respondId); if (!temp || !respond) { tinymce.EditorManager.execCommand('mceAddEditor', true, 'comment'); return; } document.getElementById('comment_parent').value = '0'; temp.parentNode.insertBefore(respond, temp); temp.parentNode.removeChild(temp); this.style.display = 'none'; this.onclick = null; tinymce.EditorManager.execCommand('mceAddEditor', true, 'comment'); return false; }; try { document.getElementById('comment').focus(); } catch (e) { } return false; }; } });

Папийон — купить в Москве | Объявление №137661 | ZVERO Гуппи 🔥 описание рыбы, особенности, виды, образ жизни Козочки подрощенные — купить в Москве | Объявление №49860 | ZVERO Собаки щенки немецкая овчарка — купить в Санкт-Петербурге | Объявление №145200 | ZVERO Продаëтся козочка 100 англо-нубийская — купить в Москве | Объявление №28885 | ZVERO