From 580b5bb8ef24f950581545425b4fee23a6e1c6ab Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 31 May 2005 02:57:21 +0000 Subject: 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) --- swat/docs/menu.js | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) (limited to 'swat/docs') 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); + -- cgit