Doubleclick on comment text to open QE

git-svn-id: https://develop.svn.wordpress.org/trunk@9437 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2008-10-31 18:09:42 +00:00
parent 3501b899b2
commit 96848c8c63
2 changed files with 6 additions and 4 deletions

View File

@ -97,7 +97,9 @@ commentReply = {
$('a.save', row).click(function() { return commentReply.send(this); });
// 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){
if ( $('#the-comment-list #replyrow').length > 0 )
@ -108,8 +110,8 @@ commentReply = {
addEvents : function(r) {
r.each(function() {
$(this).dblclick(function(){
commentReply.toggle(this);
$(this).find('.column-comment > p').dblclick(function(){
commentReply.toggle($(this).parent());
});
});
},

View File

@ -156,7 +156,7 @@ function wp_default_scripts( &$scripts ) {
'good' => __('Medium'),
'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(
'pending' => __('%i% pending'), // must look like: "# blah blah"
'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']),