Separate dbx managers for post and page forms. Props mdawaffe. fixes #2035
git-svn-id: http://svn.automattic.com/wordpress/trunk@3313 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3a51b35f25
commit
c676e9c5c0
|
@ -83,9 +83,18 @@ addLoadEvent(blurry);
|
||||||
<script type="text/javascript" src="../wp-includes/js/tinymce/tiny_mce_gzip.php?ver=20051211"></script>
|
<script type="text/javascript" src="../wp-includes/js/tinymce/tiny_mce_gzip.php?ver=20051211"></script>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<script type="text/javascript" src="../wp-includes/js/dbx.js"></script>
|
<script type="text/javascript" src="../wp-includes/js/dbx.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
addLoadEvent( function() {
|
||||||
|
<?php switch ( $pagenow ) : case 'post.php' : ?>
|
||||||
|
var manager = new dbxManager('postmeta'); //session ID [/-_a-zA-Z0-9/]
|
||||||
|
<?php break; case 'page-new.php' : ?>
|
||||||
|
var manager = new dbxManager('pagemeta'); //session ID [/-_a-zA-Z0-9/]
|
||||||
|
<?php break; endswitch; ?>
|
||||||
|
});
|
||||||
|
</script>
|
||||||
<script type="text/javascript" src="../wp-includes/js/dbx-key.js"></script>
|
<script type="text/javascript" src="../wp-includes/js/dbx-key.js"></script>
|
||||||
|
|
||||||
<?php if ( isset($editing) && current_user_can('manage_categories') ) : ?>
|
<?php if ( current_user_can('manage_categories') ) : ?>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
#newcat { width: 120px; margin-right: 5px; }
|
#newcat { width: 120px; margin-right: 5px; }
|
||||||
input#catadd { background: #a4a4a4;
|
input#catadd { background: #a4a4a4;
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
//initialisation function
|
//initialisation function
|
||||||
addLoadEvent( function()
|
addLoadEvent( function()
|
||||||
{
|
{
|
||||||
//initialise the docking boxes manager
|
|
||||||
var manager = new dbxManager('postmeta'); //session ID [/-_a-zA-Z0-9/]
|
|
||||||
|
|
||||||
|
|
||||||
//create new docking boxes group
|
//create new docking boxes group
|
||||||
var meta = new dbxGroup(
|
var meta = new dbxGroup(
|
||||||
'grabit', // container ID [/-_a-zA-Z0-9/]
|
'grabit', // container ID [/-_a-zA-Z0-9/]
|
||||||
|
|
Loading…
Reference in New Issue