Doubleclick on comment text to open QE
git-svn-id: http://svn.automattic.com/wordpress/trunk@9437 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
698b1f1e4a
commit
232b802050
@ -97,7 +97,9 @@ commentReply = {
|
|||||||
$('a.save', row).click(function() { return commentReply.send(this); });
|
$('a.save', row).click(function() { return commentReply.send(this); });
|
||||||
|
|
||||||
// add events
|
// add events
|
||||||
this.addEvents(this.rows);
|
$('#the-comment-list .column-comment > p').dblclick(function(){
|
||||||
|
commentReply.toggle($(this).parent());
|
||||||
|
});
|
||||||
|
|
||||||
$('#doaction, #doaction2, #post-query-submit').click(function(e){
|
$('#doaction, #doaction2, #post-query-submit').click(function(e){
|
||||||
if ( $('#the-comment-list #replyrow').length > 0 )
|
if ( $('#the-comment-list #replyrow').length > 0 )
|
||||||
@ -108,8 +110,8 @@ commentReply = {
|
|||||||
|
|
||||||
addEvents : function(r) {
|
addEvents : function(r) {
|
||||||
r.each(function() {
|
r.each(function() {
|
||||||
$(this).dblclick(function(){
|
$(this).find('.column-comment > p').dblclick(function(){
|
||||||
commentReply.toggle(this);
|
commentReply.toggle($(this).parent());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -156,7 +156,7 @@ function wp_default_scripts( &$scripts ) {
|
|||||||
'good' => __('Medium'),
|
'good' => __('Medium'),
|
||||||
'strong' => __('Strong')
|
'strong' => __('Strong')
|
||||||
) );
|
) );
|
||||||
$scripts->add( 'admin-comments', '/wp-admin/js/edit-comments.js', array('wp-lists', 'jquery-ui-resizable', 'quicktags', 'columns', 'settings-box'), '20081016' );
|
$scripts->add( 'admin-comments', '/wp-admin/js/edit-comments.js', array('wp-lists', 'jquery-ui-resizable', 'quicktags', 'columns', 'settings-box'), '20081031' );
|
||||||
$scripts->localize( 'admin-comments', 'adminCommentsL10n', array(
|
$scripts->localize( 'admin-comments', 'adminCommentsL10n', array(
|
||||||
'pending' => __('%i% pending'), // must look like: "# blah blah"
|
'pending' => __('%i% pending'), // must look like: "# blah blah"
|
||||||
'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']),
|
'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']),
|
||||||
|
Loading…
Reference in New Issue
Block a user