From 46e081fba2156f69e11d917b68a3b60623e42484 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 21 Mar 2006 00:25:58 +0000 Subject: [PATCH] Put categories dbx box up top and open. fixes #2493 git-svn-id: https://develop.svn.wordpress.org/trunk@3651 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit-form-advanced.php | 14 +++++++------- wp-includes/js/dbx-key.js | 8 ++++++++ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 5df9c126eb..5ef39cc013 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -68,6 +68,13 @@ addLoadEvent(focusit);
+
+

+
+

+
+
+

@@ -89,13 +96,6 @@ addLoadEvent(focusit);
-
-

-
-

-
-
-

diff --git a/wp-includes/js/dbx-key.js b/wp-includes/js/dbx-key.js index f7155de880..bd13da85e8 100644 --- a/wp-includes/js/dbx-key.js +++ b/wp-includes/js/dbx-key.js @@ -20,6 +20,14 @@ addLoadEvent( function() '%mytitle% [%dbxtitle%]' // pattern-match syntax for title-attribute conflicts ); + // Boxes are closed by default. Open the Category box if the cookie isn't already set. + var catdiv = document.getElementById('categorydiv'); + if ( catdiv ) { + var button = catdiv.getElementsByTagName('A')[0]; + if ( dbx.cookiestate == null && /dbx\-toggle\-closed/.test(button.className) ) + meta.toggleBoxState(button, true); + } + var advanced = new dbxGroup( 'advancedstuff', // container ID [/-_a-zA-Z0-9/] 'vertical', // orientation ['vertical'|'horizontal']