Display a placeholder dropbox for Sortables

git-svn-id: http://svn.automattic.com/wordpress/trunk@9268 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2008-10-21 22:06:41 +00:00
parent f6943d33bc
commit 66dfd6f478
2 changed files with 9 additions and 1 deletions

View File

@ -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',

View File

@ -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;