adding new level 0 items
Hi,
I'm going to add a new "level 0" item to the menu bar, but can't. I added some lines to the ~/server/www/menu/menu_items.js file, like this,
var MENU_ITEMS = [ ['Views', null, null, ['Main view', '/hobbit/bb.html'], ['All non-green view', '/hobbit/bb2.html'], ['NK view', '/hobbit/bbnk.html'], ], ['Reports', null, null, ['Event log Report', '/cgi-bin/hobbit/bb-eventlog.sh'], ['Availability Report', '/cgi-bin/hobbit/bb-rep.sh'], ['Snapshot Report', '/cgi-bin/hobbit/bb-snapshot.sh'], ], ['Administration', null, null, ['Find host', '/cgi-bin/hobbit/bb-findhost.sh'], ['Acknowledge alert', '/cgi-bin/hobbit/bb-ack.sh'], ['Enable/disable', '/cgi-bin/hobbit/hobbit-enadis.sh'], ], ['Help', null, null, ['About Hobbit', '/hobbit/help/about.html'], ['Installing Hobbit', '/hobbit/help/install.html'], ['Configuring Monitoring', '/hobbit/help/hobbit-config.html'], ['Configuring Alerts', '/hobbit/help/hobbit-alerts.html'], ['Known problems', '/hobbit/help/known-issues.html'], ['Tips and Tricks', '/hobbit/help/hobbit-tips.html'], ['Hobbit man-pages', '/hobbit/help/manpages/'], ], /* added */ ['Link', null, null, ['test', 'http://hoge.com/test.html'], ], /* added end */ ];
After that, the menu var became not to be displayed. If there are up to four "level 0" items, I can see the menu var. When I comment out one of the items, ex. 'Views', the menu var goes like bellow,
[Reports ][Administration ][Help ][Link ]
How can I add the new item to the defaults.
Thanks in advance.
Keio
On Fri, Oct 07, 2005 at 06:54:05PM +0900, Keio Oyama wrote:
I'm going to add a new "level 0" item to the menu bar, but can't. I added some lines to the ~/server/www/menu/menu_items.js file, like this,
[snip]
/* added */ ['Link', null, null, ['test', 'http://hoge.com/test.html'], ], /* added end */ ];
After that, the menu var became not to be displayed.
Have you tried it without those comments ? This is part of some JavaScript, so if you must use comments I think they should be '//' - like
// added comment
Henrik
Henrik,
Have you tried it without those comments ? This is part of some JavaScript, so if you must use comments I think they should be '//' - like
// added comment
Yes, I've added the lines without the comments, but got the same result. Thanks.
keio
participants (2)
-
henrik@hswn.dk
-
oyama@impress.co.jp