~canonical-sysadmins/wordpress/3.9.x

« back to all changes in this revision

Viewing changes to wp-admin/js/inline-edit-tax.dev.js

  • Committer: Paul Collins
  • Date: 2011-07-13 02:31:10 UTC
  • Revision ID: paul.collins@canonical.com-20110713023110-rvp7cjj31rsaomkr
import Wordpress 3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
        init : function() {
6
6
                var t = this, row = $('#inline-edit');
7
7
 
8
 
                t.type = $('#the-list').attr('className').substr(5);
 
8
                t.type = $('#the-list').attr('class').substr(5);
9
9
                t.what = '#'+t.type+'-';
10
10
 
11
11
                $('.editinline').live('click', function(){
20
20
                $('a.save', row).click(function() { return inlineEditTax.save(this); });
21
21
                $('input, select', row).keydown(function(e) { if(e.which == 13) return inlineEditTax.save(this); });
22
22
 
23
 
                $('#posts-filter input[type="submit"]').click(function(e){
24
 
                        if ( $('form#posts-filter tr.inline-editor').length > 0 )
25
 
                                t.revert();
 
23
                $('#posts-filter input[type="submit"]').mousedown(function(e){
 
24
                        t.revert();
26
25
                });
27
26
        },
28
27