Make WordPress Core


Ignore:
Timestamp:
05/29/2010 07:39:40 PM (14 years ago)
Author:
markjaquith
Message:

Do not load window.onbeforeonload event if we are not on an existing nav menu. props filosofo. Reduce opacity on nav menu postboxes if we are not on an existing nav menu, and for JS users, deactivate all links and form elements, to make it obvious that those UI elements are not usable at this stage. fixes #13615

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/nav-menus.php

    r15049 r15062  
    457457    ?>
    458458    <div id="nav-menus-frame">
    459     <div id="menu-settings-column" class="metabox-holder">
     459    <div id="menu-settings-column" class="metabox-holder<?php if ( !$nav_menu_selected_id ) { echo ' metabox-holder-disabled'; } ?>">
    460460
    461461        <form id="nav-menu-meta" action="<?php echo admin_url( 'nav-menus.php' ); ?>" class="nav-menu-meta" method="post" enctype="multipart/form-data">
Note: See TracChangeset for help on using the changeset viewer.