? .DS_Store
? head.db
? install_drupal.php
? toggle-advanced-settings-6.patch
? toggle-advanced-settings-8.patch
? toggle-advanced-settings-9.patch
? sites/default/files
? sites/default/private
? sites/default/settings.php
Index: modules/menu/menu.admin.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/menu/menu.admin.inc,v
retrieving revision 1.56
diff -u -p -r1.56 menu.admin.inc
--- modules/menu/menu.admin.inc	24 Aug 2009 01:49:41 -0000	1.56
+++ modules/menu/menu.admin.inc	1 Sep 2009 18:39:13 -0000
@@ -61,6 +61,8 @@ function menu_overview_form(&$form_state
   $menu_admin = FALSE;
 
   $form = _menu_overview_tree_form($tree);
+  $form['#attached_js'] = array(drupal_get_path('module', 'menu') . '/menu.admin.js' => array('weight' => JS_DEFAULT - 0.5));
+  
   $form['#menu'] =  $menu;
   if (element_children($form)) {
     $form['submit'] = array(
Index: modules/menu/menu.admin.js
===================================================================
RCS file: modules/menu/menu.admin.js
diff -N modules/menu/menu.admin.js
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ modules/menu/menu.admin.js	1 Sep 2009 18:39:13 -0000
@@ -0,0 +1,50 @@
+// $Id: menu.js,v 1.2 2009/04/27 20:19:36 webchick Exp $
+
+(function ($) {
+
+/**
+ * Show and hide advanced settings link.
+ */
+Drupal.behaviors.menuAdvancedSettings = {
+  attach: function (context, settings) {
+    $('table#menu-overview', context).once('menu-advanced-settings', function () {
+      var self = $(this)
+        .before($('<a href="#">' + Drupal.t('Show advanced settings') + '</a>').toggle(function() {
+            self.each(function() {
+              if ($(this).parent().get(0).tagName.toLowerCase() == 'thead') {
+                $(this).children().slice(0, 1)
+                  .after('<th>' + Drupal.t('Show as Expanded') + '</th>')
+                  .after('<th>' + Drupal.t('Enabled') + '</th>');
+              }
+              else {
+                $(this).children().slice(1, 3).show();
+              }
+            });
+            $(this).text(Drupal.t('Hide advanced settings'));
+            return false;
+          }, function() {
+            self.each(function() {
+              if ($(this).parent().get(0).tagName.toLowerCase() == 'thead') {
+                $(this).children().slice(1, 3).remove();
+              }
+              else {
+                $(this).children().slice(1, 3).hide();
+              }
+            });
+            $(this).text(Drupal.t('Show advanced settings'));
+            return false;
+          }))
+        .find('> thead > tr, > tbody > tr, > tr')
+        .each(function() {
+          if ($(this).parent().get(0).tagName.toLowerCase() == 'thead') {
+            $(this).children().slice(1, 3).remove();
+          }
+          else {
+            $(this).children().slice(1, 3).hide();
+          }
+        });
+    });
+  }
+};
+
+})(jQuery);
