~canonical-sysadmins/wordpress/3.9.x

« back to all changes in this revision

Viewing changes to wp-admin/js/image-edit.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:
16
16
                        $('input', el).removeAttr('disabled');
17
17
                } else {
18
18
                        el.addClass('disabled');
19
 
                        $('input', el).attr('disabled', 'disabled');
 
19
                        $('input', el).prop('disabled', true);
20
20
                }
21
21
        },
22
22
 
64
64
        },
65
65
 
66
66
        getTarget : function(postid) {
67
 
                return $('input[name=imgedit-target-' + postid + ']:checked', '#imgedit-save-target-' + postid).val() || 'full';
 
67
                return $('input[name="imgedit-target-' + postid + '"]:checked', '#imgedit-save-target-' + postid).val() || 'full';
68
68
        },
69
69
 
70
70
        scaleChanged : function(postid, x) {
178
178
                        if ( $('#imgedit-history-' + postid).val() && $('#imgedit-undone-' + postid).val() == 0 )
179
179
                                $('input.imgedit-submit-btn', '#imgedit-panel-' + postid).removeAttr('disabled');
180
180
                        else
181
 
                                $('input.imgedit-submit-btn', '#imgedit-panel-' + postid).attr('disabled', 'disabled');
 
181
                                $('input.imgedit-submit-btn', '#imgedit-panel-' + postid).prop('disabled', true);
182
182
 
183
183
                        t.toggleEditor(postid, 0);
184
184
                }).attr('src', ajaxurl + '?' + $.param(data));
271
271
                var data, elem = $('#image-editor-' + postid), head = $('#media-head-' + postid),
272
272
                        btn = $('#imgedit-open-btn-' + postid), spin = btn.siblings('img');
273
273
 
274
 
                btn.attr('disabled', 'disabled');
 
274
                btn.prop('disabled', true);
275
275
                spin.css('visibility', 'visible');
276
276
 
277
277
                data = {