]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/js/edit-comments.js
WordPress 4.0
[autoinstalls/wordpress.git] / wp-admin / js / edit-comments.js
index ff149e19dcca6e58c885a423216b245a94f82e52..78c46174eaf9014e8a72a9a798b9b023997d3627 100644 (file)
@@ -607,6 +607,19 @@ $(document).ready(function(){
                        }
                );
        }
+
+       // Quick Edit and Reply have an inline comment editor.
+       $( '#the-comment-list' ).on( 'click', '.comment-inline', function (e) {
+               e.preventDefault();
+               var $el = $( this ),
+                       action = 'replyto';
+
+               if ( 'undefined' !== typeof $el.data( 'action' ) ) {
+                       action = $el.data( 'action' );
+               }
+
+               commentReply.open( $el.data( 'commentId' ), $el.data( 'postId' ), action );
+       } );
 });
 
 })(jQuery);