--- dhtml_menu.with.dhtml_menu_3-5_bullets.patch/dhtml_menu.js 2010-04-08 11:34:31.000000000 +0200
+++ dhtml_menu/dhtml_menu.js 2010-04-08 11:36:57.000000000 +0200
@@ -169,12 +169,16 @@
}
/**
- * Saves the dhtml_menu cooki.
+ * Saves the dhtml_menu cookie.
*/
Drupal.dhtmlMenu.cookieSet = function() {
+ var effects = Drupal.settings.dhtmlMenu;
var expanded = new Array();
$('li.expanded').each(function() {
- expanded.push($(this).find('a:first').attr('id').substr(5));
+ if(effects.bullets)
+ expanded.push($(this).find('a:eq(1)').attr('id').substr(5));
+ else
+ expanded.push($(this).find('a:first').attr('id').substr(5));
});
document.cookie = 'dhtml_menu=' + expanded.join(',') + ';path=/';
}