File Editor
Directories:
.. (Back)
crop
imgareaselect
jcrop
jquery
mediaelement
plupload
swfupload
thickbox
tinymce
Files:
admin-bar.js
admin-bar.min.js
autosave.js
autosave.min.js
backbone.min.js
colorpicker.js
colorpicker.min.js
comment-reply.js
comment-reply.min.js
customize-base.js
customize-base.min.js
customize-loader.js
customize-loader.min.js
customize-models.js
customize-models.min.js
customize-preview-nav-menus.js
customize-preview-nav-menus.min.js
customize-preview-widgets.js
customize-preview-widgets.min.js
customize-preview.js
customize-preview.min.js
customize-selective-refresh.js
customize-selective-refresh.min.js
customize-views.js
customize-views.min.js
heartbeat.js
heartbeat.min.js
hoverIntent.js
hoverIntent.min.js
imagesloaded.min.js
json2.js
json2.min.js
masonry.min.js
mce-view.js
mce-view.min.js
media-audiovideo.js
media-audiovideo.min.js
media-editor.js
media-editor.min.js
media-grid.js
media-grid.min.js
media-models.js
media-models.min.js
media-views.js
media-views.min.js
quicktags.js
quicktags.min.js
shortcode.js
shortcode.min.js
swfobject.js
tw-sack.js
tw-sack.min.js
twemoji.js
twemoji.min.js
underscore.min.js
utils.js
utils.min.js
wp-a11y.js
wp-a11y.min.js
wp-ajax-response.js
wp-ajax-response.min.js
wp-auth-check.js
wp-auth-check.min.js
wp-backbone.js
wp-backbone.min.js
wp-embed-template.js
wp-embed-template.min.js
wp-embed.js
wp-embed.min.js
wp-emoji-loader.js
wp-emoji-loader.min.js
wp-emoji-release.min.js
wp-emoji.js
wp-emoji.min.js
wp-list-revisions.js
wp-list-revisions.min.js
wp-lists.js
wp-lists.min.js
wp-pointer.js
wp-pointer.min.js
wp-util.js
wp-util.min.js
wpdialog.js
wpdialog.min.js
wplink.js
wplink.min.js
zxcvbn-async.js
zxcvbn-async.min.js
zxcvbn.min.js
Create New File
Create
Edit File: comment-reply.js
var addComment = { moveForm: function( commId, parentId, respondId, postId ) { var div, element, style, cssHidden, t = this, comm = t.I( commId ), respond = t.I( respondId ), cancel = t.I( 'cancel-comment-reply-link' ), parent = t.I( 'comment_parent' ), post = t.I( 'comment_post_ID' ), commentForm = respond.getElementsByTagName( 'form' )[0]; if ( ! comm || ! respond || ! cancel || ! parent || ! commentForm ) { return; } t.respondId = respondId; postId = postId || false; if ( ! t.I( 'wp-temp-form-div' ) ) { div = document.createElement( 'div' ); div.id = 'wp-temp-form-div'; div.style.display = 'none'; respond.parentNode.insertBefore( div, respond ); } comm.parentNode.insertBefore( respond, comm.nextSibling ); if ( post && postId ) { post.value = postId; } parent.value = parentId; cancel.style.display = ''; cancel.onclick = function() { var t = addComment, temp = t.I( 'wp-temp-form-div' ), respond = t.I( t.respondId ); if ( ! temp || ! respond ) { return; } t.I( 'comment_parent' ).value = '0'; temp.parentNode.insertBefore( respond, temp ); temp.parentNode.removeChild( temp ); this.style.display = 'none'; this.onclick = null; return false; }; /* * Set initial focus to the first form focusable element. * Try/catch used just to avoid errors in IE 7- which return visibility * 'inherit' when the visibility value is inherited from an ancestor. */ try { for ( var i = 0; i < commentForm.elements.length; i++ ) { element = commentForm.elements[i]; cssHidden = false; // Modern browsers. if ( 'getComputedStyle' in window ) { style = window.getComputedStyle( element ); // IE 8. } else if ( document.documentElement.currentStyle ) { style = element.currentStyle; } /* * For display none, do the same thing jQuery does. For visibility, * check the element computed style since browsers are already doing * the job for us. In fact, the visibility computed style is the actual * computed value and already takes into account the element ancestors. */ if ( ( element.offsetWidth <= 0 && element.offsetHeight <= 0 ) || style.visibility === 'hidden' ) { cssHidden = true; } // Skip form elements that are hidden or disabled. if ( 'hidden' === element.type || element.disabled || cssHidden ) { continue; } element.focus(); // Stop after the first focusable element. break; } } catch( er ) {} return false; }, I: function( id ) { return document.getElementById( id ); } };
Save Changes
Rename File
Rename