Closed (fixed)
Project:
Nice Menus
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2006 at 02:29 UTC
Updated:
16 Feb 2006 at 11:30 UTC
your need to wrap the contents og your hook_menu within a if (!$may_cache) block in order to prevent those stylesheets and js from being adde twice. not a big deal. module looks nice so far.
here is the change
// Implemention of hook_menu()
function nice_menus_menu($may_cache) {
if (!$may_cache) {
drupal_add_js(drupal_get_path('module', 'nice_menus').'/nice_menus.js');
theme_add_style(drupal_get_path('module', 'nice_menus').'/nice_menus.css');
}
}
Comments
Comment #1
simon rawson commentedThis is fixed in the next version, which will be committed later today.
Thanks!
Simon
Comment #2
jakeg commentednow in cvs
Comment #3
(not verified) commented