Make WordPress Core

Changeset 3313


Ignore:
Timestamp:
12/15/2005 09:48:12 PM (19 years ago)
Author:
ryan
Message:

Separate dbx managers for post and page forms. Props mdawaffe. fixes #2035

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r3306 r3313  
    8484<?php endif; ?>
    8585<script type="text/javascript" src="../wp-includes/js/dbx.js"></script>
     86<script type="text/javascript">
     87    addLoadEvent( function() {
     88<?php switch ( $pagenow ) : case 'post.php' : ?>
     89        var manager = new dbxManager('postmeta');       //session ID [/-_a-zA-Z0-9/]
     90<?php break; case 'page-new.php' : ?>
     91        var manager = new dbxManager('pagemeta');       //session ID [/-_a-zA-Z0-9/]
     92<?php break; endswitch; ?>
     93    });
     94</script>
    8695<script type="text/javascript" src="../wp-includes/js/dbx-key.js"></script>
    8796
    88 <?php if ( isset($editing) && current_user_can('manage_categories') ) : ?>
     97<?php if ( current_user_can('manage_categories') ) : ?>
    8998<style type="text/css">
    9099#newcat { width: 120px; margin-right: 5px; }
  • trunk/wp-includes/js/dbx-key.js

    r2812 r3313  
    33addLoadEvent( function()
    44{
    5     //initialise the docking boxes manager
    6     var manager = new dbxManager('postmeta');   //session ID [/-_a-zA-Z0-9/]
    7 
    8 
    95    //create new docking boxes group
    106    var meta = new dbxGroup(
Note: See TracChangeset for help on using the changeset viewer.