Make WordPress Core

Changeset 9439


Ignore:
Timestamp:
10/31/2008 06:31:26 PM (16 years ago)
Author:
azaozz
Message:

Disable dblclick for pages, posts and taxonomy QE

Location:
trunk
Files:
3 edited

Legend:

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

    r9334 r9439  
    1313
    1414        // prepare the edit row
    15         qeRow.dblclick(function() { inlineEditPost.toggle(this); })
    16             .keyup(function(e) { if(e.which == 27) return inlineEditPost.revert(); });
    17 
    18         bulkRow.dblclick(function() { inlineEditPost.revert(); })
    19             .keyup(function(e) { if (e.which == 27) return inlineEditPost.revert(); });
     15//      .dblclick(function() { inlineEditPost.toggle(this); })
     16        qeRow.keyup(function(e) { if(e.which == 27) return inlineEditPost.revert(); });
     17
     18//      .dblclick(function() { inlineEditPost.revert(); })
     19        bulkRow.keyup(function(e) { if (e.which == 27) return inlineEditPost.revert(); });
    2020
    2121        $('a.cancel', qeRow).click(function() { return inlineEditPost.revert(); });
     
    2626
    2727        // add events
    28         t.rows.dblclick(function() { inlineEditPost.toggle(this); });
     28//      t.rows.dblclick(function() { inlineEditPost.toggle(this); });
    2929        t.addEvents(t.rows);
    3030
  • trunk/wp-admin/js/inline-edit-tax.js

    r9334 r9439  
    1313
    1414        // prepare the edit row
    15         row.dblclick(function() { inlineEditTax.toggle(this); })
    16             .keyup(function(e) { if(e.which == 27) return inlineEditTax.revert(); });
     15//      .dblclick(function() { inlineEditTax.toggle(this); })
     16        row.keyup(function(e) { if(e.which == 27) return inlineEditTax.revert(); });
    1717
    1818        $('a.cancel', row).click(function() { return inlineEditTax.revert(); });
     
    2020
    2121        // add events
    22         t.rows.dblclick(function() { inlineEditTax.toggle(this); });
     22//      t.rows.dblclick(function() { inlineEditTax.toggle(this); });
    2323        t.addEvents(t.rows);
    2424
  • trunk/wp-includes/script-loader.php

    r9437 r9439  
    264264        $scripts->add( 'theme-preview', '/wp-admin/js/theme-preview.js', array( 'thickbox', 'jquery' ), '20080625' );
    265265
    266         $scripts->add( 'inline-edit-post', '/wp-admin/js/inline-edit-post.js', array( 'jquery', 'jquery-form', 'suggest' ), '20081023' );
     266        $scripts->add( 'inline-edit-post', '/wp-admin/js/inline-edit-post.js', array( 'jquery', 'jquery-form', 'suggest' ), '20081031' );
    267267        $scripts->localize( 'inline-edit-post', 'inlineEditL10n', array(
    268268            'error' => __('Error while saving the changes.')
    269269        ) );
    270270
    271         $scripts->add( 'inline-edit-tax', '/wp-admin/js/inline-edit-tax.js', array( 'jquery', 'jquery-form' ), '20081023' );
     271        $scripts->add( 'inline-edit-tax', '/wp-admin/js/inline-edit-tax.js', array( 'jquery', 'jquery-form' ), '20081031' );
    272272        $scripts->localize( 'inline-edit-tax', 'inlineEditL10n', array(
    273273            'error' => __('Error while saving the changes.')
Note: See TracChangeset for help on using the changeset viewer.