Index: dhtml_menu.admin.inc
===================================================================
--- dhtml_menu.admin.inc (revision 1054)
+++ dhtml_menu.admin.inc (working copy)
@@ -20,6 +20,7 @@
'children' => t('Close menus when their parent menu is closed.'),
'clone' => t('Add an extra page link to each expanding menu item.'),
'doubleclick' => t('Go to the page on double-click.'),
+ 'click' => t('Go to the page on click.'),
),
'#default_value' => variable_get('dhtml_menu_effects', unserialize(DHTML_MENU_DEFAULT)),
);
Index: dhtml_menu.js
===================================================================
--- dhtml_menu.js (revision 1054)
+++ dhtml_menu.js (working copy)
@@ -56,8 +56,11 @@
});
}
- $(li).find('a:first').click(function(e) {
+ $(li).find('a:first').click(function(e) {
Drupal.dhtmlMenu.toggleMenu($(li));
+ if (effects.click) {
+ window.location = this.href;
+ }
return false;
});
});