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. Built from https://develop.svn.wordpress.org/trunk@26306 git-svn-id: http://core.svn.wordpress.org/trunk@26210 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
784bd41501
commit
1aa122be5e
|
@ -9996,6 +9996,9 @@ input.newtag:focus ~ div.taghint {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.widgets-holder-wrap .widget-inside {
|
.widgets-holder-wrap .widget-inside {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -9996,6 +9996,9 @@ input.newtag:focus ~ div.taghint {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.widgets-holder-wrap .widget-inside {
|
.widgets-holder-wrap .widget-inside {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -203,7 +203,7 @@ wpWidgets = {
|
||||||
// Open the chooser
|
// Open the chooser
|
||||||
self.clearWidgetSelection();
|
self.clearWidgetSelection();
|
||||||
$( '#widgets-left' ).addClass( 'chooser' );
|
$( '#widgets-left' ).addClass( 'chooser' );
|
||||||
widget.addClass( 'widget-in-question' );
|
widget.addClass( 'widget-in-question' ).draggable('disable');
|
||||||
|
|
||||||
widget.find( '.widget-description' ).after( chooser );
|
widget.find( '.widget-description' ).after( chooser );
|
||||||
chooser.slideDown( 300, function() {
|
chooser.slideDown( 300, function() {
|
||||||
|
@ -244,7 +244,7 @@ wpWidgets = {
|
||||||
|
|
||||||
saveOrder : function(sb) {
|
saveOrder : function(sb) {
|
||||||
if ( 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 = {
|
var a = {
|
||||||
|
@ -387,7 +387,8 @@ wpWidgets = {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
$( '#widgets-chooser' ).slideUp( 200, function() {
|
$( '#widgets-chooser' ).slideUp( 200, function() {
|
||||||
$('#wpbody-content').append( this );
|
$( '#wpbody-content' ).append( this );
|
||||||
|
$( '#widgets-left .widget-in-question' ).draggable('enable');
|
||||||
self.clearWidgetSelection();
|
self.clearWidgetSelection();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue