update YUI to 2.8.0r4
This commit is contained in:
parent
27f474ec64
commit
2d28e0c0ba
2007 changed files with 344487 additions and 210070 deletions
|
|
@ -80,10 +80,9 @@
|
|||
YAHOO.util.Event.onContentReady("productsandservices", function () {
|
||||
|
||||
/*
|
||||
Instantiate a MenuBar: The first argument passed to the
|
||||
constructor is the id of the element in the page
|
||||
representing the MenuBar; the second is an object literal
|
||||
of configuration properties.
|
||||
Instantiate a MenuBar: The first argument passed to the constructor
|
||||
is the id for the Menu element to be created, the second is an
|
||||
object literal of configuration properties.
|
||||
*/
|
||||
|
||||
var oMenuBar = new YAHOO.widget.MenuBar("productsandservices", {
|
||||
|
|
@ -179,12 +178,15 @@
|
|||
|
||||
oMenuBar.subscribe("beforeRender", function () {
|
||||
|
||||
var nSubmenus = aSubmenuData.length,
|
||||
i;
|
||||
|
||||
|
||||
if (this.getRoot() == this) {
|
||||
|
||||
this.getItem(0).cfg.setProperty("submenu", aSubmenuData[0]);
|
||||
this.getItem(1).cfg.setProperty("submenu", aSubmenuData[1]);
|
||||
this.getItem(2).cfg.setProperty("submenu", aSubmenuData[2]);
|
||||
this.getItem(3).cfg.setProperty("submenu", aSubmenuData[3]);
|
||||
for (i = 0; i < nSubmenus; i++) {
|
||||
this.getItem(i).cfg.setProperty("submenu", aSubmenuData[i]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue