Fix opening closed widget areas when dragging a widget over them.
Props polevaultweb. Fixes #13524. Built from https://develop.svn.wordpress.org/trunk@33088 git-svn-id: http://core.svn.wordpress.org/trunk@33059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c543f98ee6
commit
b2e725eb27
|
@ -128,7 +128,7 @@ wpWidgets = {
|
||||||
* Opens and closes previously closed Sidebars when Widgets are dragged over/out of them.
|
* Opens and closes previously closed Sidebars when Widgets are dragged over/out of them.
|
||||||
*/
|
*/
|
||||||
sidebars.droppable( {
|
sidebars.droppable( {
|
||||||
tolerance: 'pointer',
|
tolerance: 'intersect',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Open Sidebar when a Widget gets dragged over it.
|
* Open Sidebar when a Widget gets dragged over it.
|
||||||
|
@ -146,6 +146,7 @@ wpWidgets = {
|
||||||
if ( $wrap.hasClass( 'closed' ) ) {
|
if ( $wrap.hasClass( 'closed' ) ) {
|
||||||
wpWidgets.hoveredSidebar = $wrap;
|
wpWidgets.hoveredSidebar = $wrap;
|
||||||
$wrap.removeClass( 'closed' );
|
$wrap.removeClass( 'closed' );
|
||||||
|
sidebars.sortable( 'refresh' );
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -169,6 +170,7 @@ wpWidgets = {
|
||||||
distance: 2,
|
distance: 2,
|
||||||
containment: '#wpwrap',
|
containment: '#wpwrap',
|
||||||
tolerance: 'pointer',
|
tolerance: 'pointer',
|
||||||
|
refreshPositions: true,
|
||||||
start: function( event, ui ) {
|
start: function( event, ui ) {
|
||||||
var height, $this = $(this),
|
var height, $this = $(this),
|
||||||
$wrap = $this.parent(),
|
$wrap = $this.parent(),
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.3-beta1-33087';
|
$wp_version = '4.3-beta1-33088';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue