From ae46fd9db46a86336b13659287fa6a92ee619466 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Tue, 21 Oct 2008 22:06:41 +0000 Subject: [PATCH] Display a placeholder dropbox for Sortables git-svn-id: https://develop.svn.wordpress.org/trunk@9268 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/js/postbox.js | 1 + wp-admin/wp-admin.css | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/wp-admin/js/postbox.js b/wp-admin/js/postbox.js index efa5de869c..9814446fee 100644 --- a/wp-admin/js/postbox.js +++ b/wp-admin/js/postbox.js @@ -32,6 +32,7 @@ init : function(page,args) { $.extend( this, args || {} ); jQuery('.meta-box-sortables').sortable( { + placeholder: 'sortable-placeholder', connectWith: [ '.meta-box-sortables' ], items: '> .postbox', handle: '.hndle', diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index 0f9c85d0e1..5059df39e2 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -1076,7 +1076,8 @@ table.form-table td .updated { .postbox { position: relative; - min-width: 195px; + min-width: 255px; + width: 99.5%; } #normal-sortables .inside-submitbox .insidebox { @@ -1812,6 +1813,12 @@ fieldset { cursor: move; } +.sortable-placeholder { + border: 1px #bbb dashed; + background: #f5f5f5; + z-index: -1; +} + #jj, #hh, #mn { width: 1.5em; padding: 1px;