mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
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:
parent
f96695270f
commit
68e1a688dc
@ -12,11 +12,11 @@ inlineEditPost = {
|
|||||||
t.rows = $('tr.iedit');
|
t.rows = $('tr.iedit');
|
||||||
|
|
||||||
// prepare the edit row
|
// prepare the edit row
|
||||||
qeRow.dblclick(function() { inlineEditPost.toggle(this); })
|
// .dblclick(function() { inlineEditPost.toggle(this); })
|
||||||
.keyup(function(e) { if(e.which == 27) return inlineEditPost.revert(); });
|
qeRow.keyup(function(e) { if(e.which == 27) return inlineEditPost.revert(); });
|
||||||
|
|
||||||
bulkRow.dblclick(function() { inlineEditPost.revert(); })
|
// .dblclick(function() { inlineEditPost.revert(); })
|
||||||
.keyup(function(e) { if (e.which == 27) return inlineEditPost.revert(); });
|
bulkRow.keyup(function(e) { if (e.which == 27) return inlineEditPost.revert(); });
|
||||||
|
|
||||||
$('a.cancel', qeRow).click(function() { return inlineEditPost.revert(); });
|
$('a.cancel', qeRow).click(function() { return inlineEditPost.revert(); });
|
||||||
$('a.save', qeRow).click(function() { return inlineEditPost.save(this); });
|
$('a.save', qeRow).click(function() { return inlineEditPost.save(this); });
|
||||||
@ -25,7 +25,7 @@ inlineEditPost = {
|
|||||||
$('a.save', bulkRow).click(function() { return inlineEditPost.saveBulk(); });
|
$('a.save', bulkRow).click(function() { return inlineEditPost.saveBulk(); });
|
||||||
|
|
||||||
// add events
|
// add events
|
||||||
t.rows.dblclick(function() { inlineEditPost.toggle(this); });
|
// t.rows.dblclick(function() { inlineEditPost.toggle(this); });
|
||||||
t.addEvents(t.rows);
|
t.addEvents(t.rows);
|
||||||
|
|
||||||
$('#bulk-title-div').after(
|
$('#bulk-title-div').after(
|
||||||
|
@ -12,14 +12,14 @@ inlineEditTax = {
|
|||||||
t.rows = $('tr.iedit');
|
t.rows = $('tr.iedit');
|
||||||
|
|
||||||
// prepare the edit row
|
// prepare the edit row
|
||||||
row.dblclick(function() { inlineEditTax.toggle(this); })
|
// .dblclick(function() { inlineEditTax.toggle(this); })
|
||||||
.keyup(function(e) { if(e.which == 27) return inlineEditTax.revert(); });
|
row.keyup(function(e) { if(e.which == 27) return inlineEditTax.revert(); });
|
||||||
|
|
||||||
$('a.cancel', row).click(function() { return inlineEditTax.revert(); });
|
$('a.cancel', row).click(function() { return inlineEditTax.revert(); });
|
||||||
$('a.save', row).click(function() { return inlineEditTax.save(this); });
|
$('a.save', row).click(function() { return inlineEditTax.save(this); });
|
||||||
|
|
||||||
// add events
|
// add events
|
||||||
t.rows.dblclick(function() { inlineEditTax.toggle(this); });
|
// t.rows.dblclick(function() { inlineEditTax.toggle(this); });
|
||||||
t.addEvents(t.rows);
|
t.addEvents(t.rows);
|
||||||
|
|
||||||
$('#posts-filter input[type="submit"]').click(function(e){
|
$('#posts-filter input[type="submit"]').click(function(e){
|
||||||
|
@ -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( '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(
|
$scripts->localize( 'inline-edit-post', 'inlineEditL10n', array(
|
||||||
'error' => __('Error while saving the changes.')
|
'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(
|
$scripts->localize( 'inline-edit-tax', 'inlineEditL10n', array(
|
||||||
'error' => __('Error while saving the changes.')
|
'error' => __('Error while saving the changes.')
|
||||||
) );
|
) );
|
||||||
|
Loading…
Reference in New Issue
Block a user