diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-05-31 02:57:21 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:20 -0500 |
commit | 580b5bb8ef24f950581545425b4fee23a6e1c6ab (patch) | |
tree | 27556d261de98263b6e585acd008e14662afa311 /swat/docs | |
parent | b8b680f3aaa84d61d3ac008cf7a121c29f9edddb (diff) | |
download | samba-580b5bb8ef24f950581545425b4fee23a6e1c6ab.tar.gz samba-580b5bb8ef24f950581545425b4fee23a6e1c6ab.tar.bz2 samba-580b5bb8ef24f950581545425b4fee23a6e1c6ab.zip |
r7132: - start a convention of making object constructors end in Obj, so we
now have FormObj(). This follows the style in the ejs manual
- make a new MenuObj object type, with a display_menu() to display
it. This will make it easier to make different types of
menus. Currently only veritical simple menus are supported.
(This used to be commit ac978d4124f773d872dd15205d90a41dcec8a38f)
Diffstat (limited to 'swat/docs')
-rw-r--r-- | swat/docs/menu.js | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/swat/docs/menu.js b/swat/docs/menu.js index 4a39497fd9..b57b454a32 100644 --- a/swat/docs/menu.js +++ b/swat/docs/menu.js @@ -1,9 +1,22 @@ /* show a menu for the docs directory */ -simple_menu( - "Samba Information", - "Samba4 development", "http://devel.samba.org/", - "Recent Checkins", "http://build.samba.org/?tree=samba4&function=Recent+Checkins", - "Recent Builds", "http://build.samba.org/?tree=samba4&function=Recent+Builds", - "EJS Information", "http://www.appwebserver.org/products/ejs/ejs.html", - "ESP Information", "http://www.appwebserver.org/products/esp/esp.html", - "HTML 4.01 Spec", "http://www.w3.org/TR/html401/"); +var m = MenuObj("Samba Information", 8); + +m.element[0].label = "Samba4 development"; +m.element[0].link = "http://devel.samba.org/"; +m.element[1].label = "Recent Checkins"; +m.element[1].link = "http://build.samba.org/?tree=samba4&function=Recent+Checkins"; +m.element[2].label = "Recent Builds"; +m.element[2].link = "http://build.samba.org/?tree=samba4&function=Recent+Builds"; +m.element[3].label = "EJS Information"; +m.element[3].link = "http://www.appwebserver.org/products/ejs/ejs.html"; +m.element[4].label = "ESP Information"; +m.element[4].link = "http://www.appwebserver.org/products/esp/esp.html"; +m.element[5].label = "HTML 4.01 Spec"; +m.element[5].link = "http://www.w3.org/TR/html401/"; +m.element[6].label = "JavaScript Spec"; +m.element[6].link = "http://www.ecma-international.org/publications/files/ecma-st/ECMA-262.pdf"; +m.element[7].label = "CSS2 Reference"; +m.element[7].link = "http://www.w3schools.com/css/css_reference.asp"; + +display_menu(m); + |