Disable dblclick for pages, posts and taxonomy QE

git-svn-id: http://svn.automattic.com/wordpress/trunk@9439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2008-10-31 18:31:26 +00:00
parent f96695270f
commit 68e1a688dc
3 changed files with 10 additions and 10 deletions

View File

@ -12,11 +12,11 @@ inlineEditPost = {
t.rows = $('tr.iedit');
// prepare the edit row
qeRow.dblclick(function() { inlineEditPost.toggle(this); })
.keyup(function(e) { if(e.which == 27) return inlineEditPost.revert(); });
// .dblclick(function() { inlineEditPost.toggle(this); })
qeRow.keyup(function(e) { if(e.which == 27) return inlineEditPost.revert(); });
bulkRow.dblclick(function() { inlineEditPost.revert(); })
.keyup(function(e) { if (e.which == 27) return inlineEditPost.revert(); });
// .dblclick(function() { inlineEditPost.revert(); })
bulkRow.keyup(function(e) { if (e.which == 27) return inlineEditPost.revert(); });
$('a.cancel', qeRow).click(function() { return inlineEditPost.revert(); });
$('a.save', qeRow).click(function() { return inlineEditPost.save(this); });
@ -25,7 +25,7 @@ inlineEditPost = {
$('a.save', bulkRow).click(function() { return inlineEditPost.saveBulk(); });
// add events
t.rows.dblclick(function() { inlineEditPost.toggle(this); });
// t.rows.dblclick(function() { inlineEditPost.toggle(this); });
t.addEvents(t.rows);
$('#bulk-title-div').after(

View File

@ -12,14 +12,14 @@ inlineEditTax = {
t.rows = $('tr.iedit');
// prepare the edit row
row.dblclick(function() { inlineEditTax.toggle(this); })
.keyup(function(e) { if(e.which == 27) return inlineEditTax.revert(); });
// .dblclick(function() { inlineEditTax.toggle(this); })
row.keyup(function(e) { if(e.which == 27) return inlineEditTax.revert(); });
$('a.cancel', row).click(function() { return inlineEditTax.revert(); });
$('a.save', row).click(function() { return inlineEditTax.save(this); });
// add events
t.rows.dblclick(function() { inlineEditTax.toggle(this); });
// t.rows.dblclick(function() { inlineEditTax.toggle(this); });
t.addEvents(t.rows);
$('#posts-filter input[type="submit"]').click(function(e){

View File

@ -263,12 +263,12 @@ function wp_default_scripts( &$scripts ) {
$scripts->add( 'theme-preview', '/wp-admin/js/theme-preview.js', array( 'thickbox', 'jquery' ), '20080625' );
$scripts->add( 'inline-edit-post', '/wp-admin/js/inline-edit-post.js', array( 'jquery', 'jquery-form', 'suggest' ), '20081023' );
$scripts->add( 'inline-edit-post', '/wp-admin/js/inline-edit-post.js', array( 'jquery', 'jquery-form', 'suggest' ), '20081031' );
$scripts->localize( 'inline-edit-post', 'inlineEditL10n', array(
'error' => __('Error while saving the changes.')
) );
$scripts->add( 'inline-edit-tax', '/wp-admin/js/inline-edit-tax.js', array( 'jquery', 'jquery-form' ), '20081023' );
$scripts->add( 'inline-edit-tax', '/wp-admin/js/inline-edit-tax.js', array( 'jquery', 'jquery-form' ), '20081031' );
$scripts->localize( 'inline-edit-tax', 'inlineEditL10n', array(
'error' => __('Error while saving the changes.')
) );