Make postboxes less "jumpy" when dragging, see #8364
git-svn-id: http://svn.automattic.com/wordpress/trunk@10019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a4f2b6960b
commit
cb11271cb3
|
@ -54,6 +54,7 @@
|
|||
handle: '.hndle',
|
||||
distance: 2,
|
||||
tolerance: 'pointer',
|
||||
toleranceMove: 'tolerance',
|
||||
sort: function(e,ui) {
|
||||
if ( $(document).width() - e.clientX < 300 ) {
|
||||
if ( ! $('#post-body').hasClass('has-sidebar') ) {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -132,7 +132,7 @@ function wp_default_scripts( &$scripts ) {
|
|||
|
||||
$scripts->add( 'jquery-ui-core', '/wp-includes/js/jquery/ui.core.js', array('jquery'), '1.5.2' );
|
||||
$scripts->add( 'jquery-ui-tabs', '/wp-includes/js/jquery/ui.tabs.js', array('jquery-ui-core'), '1.5.2' );
|
||||
$scripts->add( 'jquery-ui-sortable', '/wp-includes/js/jquery/ui.sortable.js', array('jquery-ui-core'), '1.5.2' );
|
||||
$scripts->add( 'jquery-ui-sortable', '/wp-includes/js/jquery/ui.sortable.js', array('jquery-ui-core'), '1.5.2b' );
|
||||
$scripts->add( 'jquery-ui-draggable', '/wp-includes/js/jquery/ui.draggable.js', array('jquery-ui-core'), '1.5.2' );
|
||||
$scripts->add( 'jquery-ui-resizable', '/wp-includes/js/jquery/ui.resizable.js', array('jquery-ui-core'), '1.5.2' );
|
||||
$scripts->add( 'jquery-ui-dialog', '/wp-includes/js/jquery/ui.dialog.js', array('jquery-ui-resizable', 'jquery-ui-draggable'), '1.5.2' );
|
||||
|
@ -163,7 +163,7 @@ function wp_default_scripts( &$scripts ) {
|
|||
) );
|
||||
$scripts->add( 'admin-users', '/wp-admin/js/users.js', array('wp-lists'), '20081117' );
|
||||
$scripts->add( 'xfn', '/wp-admin/js/xfn.js', false, '3517' );
|
||||
$scripts->add( 'postbox', '/wp-admin/js/postbox.js', array('jquery-ui-sortable'), '20081202' );
|
||||
$scripts->add( 'postbox', '/wp-admin/js/postbox.js', array('jquery-ui-sortable'), '20081203' );
|
||||
$scripts->localize( 'postbox', 'postboxL10n', array(
|
||||
'requestFile' => admin_url('admin-ajax.php')
|
||||
) );
|
||||
|
|
Loading…
Reference in New Issue