Make WordPress Core

Changeset 9437


Ignore:
Timestamp:
10/31/2008 06:09:42 PM (18 years ago)
Author:
azaozz
Message:

Doubleclick on comment text to open QE

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/edit-comments.js

    r9414 r9437  
    9898
    9999                // add events
    100                 this.addEvents(this.rows);
     100                $('#the-comment-list .column-comment > p').dblclick(function(){
     101                                commentReply.toggle($(this).parent());
     102                        });
    101103
    102104                $('#doaction, #doaction2, #post-query-submit').click(function(e){
    … …  
    109111        addEvents : function(r) {
    110112                r.each(function() {
    111                         $(this).dblclick(function(){
    112                                 commentReply.toggle(this);
     113                        $(this).find('.column-comment > p').dblclick(function(){
     114                                commentReply.toggle($(this).parent());
    113115                        });
    114116                });
  • trunk/wp-includes/script-loader.php

    r9436 r9437  
    157157                        'strong' => __('Strong')
    158158                ) );
    159                 $scripts->add( 'admin-comments', '/wp-admin/js/edit-comments.js', array('wp-lists', 'jquery-ui-resizable', 'quicktags', 'columns', 'settings-box'), '20081016' );
     159                $scripts->add( 'admin-comments', '/wp-admin/js/edit-comments.js', array('wp-lists', 'jquery-ui-resizable', 'quicktags', 'columns', 'settings-box'), '20081031' );
    160160                $scripts->localize( 'admin-comments', 'adminCommentsL10n', array(
    161161                        'pending' => __('%i% pending'), // must look like: "# blah blah"
Note: See TracChangeset for help on using the changeset viewer.