Display a placeholder dropbox for Sortables

git-svn-id: https://develop.svn.wordpress.org/trunk@9268 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2008-10-21 22:06:41 +00:00
parent 6580aaf8fb
commit ae46fd9db4
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;