- 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@26306 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2013-11-21 19:27:47 +00:00
parent 72a3c91855
commit 3341352a3d
2 changed files with 7 additions and 3 deletions

View File

@ -9996,6 +9996,9 @@ input.newtag:focus ~ div.taghint {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
.widgets-holder-wrap .widget-inside {

View File

@ -203,7 +203,7 @@ wpWidgets = {
// Open the chooser
self.clearWidgetSelection();
$( '#widgets-left' ).addClass( 'chooser' );
widget.addClass( 'widget-in-question' );
widget.addClass( 'widget-in-question' ).draggable('disable');
widget.find( '.widget-description' ).after( chooser );
chooser.slideDown( 300, function() {
@ -244,7 +244,7 @@ wpWidgets = {
saveOrder : function(sb) {
if ( sb ) {
$('#' + sb).closest('div.widgets-holder-wrap').find('.spinner').css('display', 'inline-block');
$('#' + sb).closest('div.widgets-holder-wrap').find('.spinner:first').css('display', 'inline-block');
}
var a = {
@ -387,7 +387,8 @@ wpWidgets = {
var self = this;
$( '#widgets-chooser' ).slideUp( 200, function() {
$('#wpbody-content').append( this );
$( '#wpbody-content' ).append( this );
$( '#widgets-left .widget-in-question' ).draggable('enable');
self.clearWidgetSelection();
});
},