Separate dbx managers for post and page forms. Props mdawaffe. fixes #2035
git-svn-id: https://develop.svn.wordpress.org/trunk@3313 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b1d79fd8f7
commit
6428176144
@ -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
Block a user