Make WordPress Core

Changeset 26306


Ignore:
Timestamp:
11/21/2013 07:27:47 PM (11 years ago)
Author:
azaozz
Message:

Widgets:

  • Prevent dragging of the widget-in-question when the chooser is open.
  • Don't show more than one spinner when saving widgets positions.
  • Disable selecting of text in the widget title. Prevents selecting/highlighting most of the screen when dragging on slower devices.

See #25821.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/wp-admin.css

    r26300 r26306  
    99979997    white-space: nowrap;
    99989998    text-overflow: ellipsis;
     9999    -webkit-user-select: none;
     10000    -moz-user-select: none;
     10001    user-select: none;
    999910002}
    1000010003
  • trunk/src/wp-admin/js/widgets.js

    r26287 r26306  
    204204                self.clearWidgetSelection();
    205205                $( '#widgets-left' ).addClass( 'chooser' );
    206                 widget.addClass( 'widget-in-question' );
     206                widget.addClass( 'widget-in-question' ).draggable('disable');
    207207
    208208                widget.find( '.widget-description' ).after( chooser );
     
    245245    saveOrder : function(sb) {
    246246        if ( sb ) {
    247             $('#' + sb).closest('div.widgets-holder-wrap').find('.spinner').css('display', 'inline-block');
     247            $('#' + sb).closest('div.widgets-holder-wrap').find('.spinner:first').css('display', 'inline-block');
    248248        }
    249249
     
    388388
    389389        $( '#widgets-chooser' ).slideUp( 200, function() {
    390             $('#wpbody-content').append( this );
     390            $( '#wpbody-content' ).append( this );
     391            $( '#widgets-left .widget-in-question' ).draggable('enable');
    391392            self.clearWidgetSelection();
    392393        });
Note: See TracChangeset for help on using the changeset viewer.