fweber
Newbie
Posts: 1
Registered: 10/25/2006
Member Is Offline
|
| posted on 10/25/2006 at 07:40 PM |
|
|
closing menu if link is a javascript call
The only glitch I've run into is if the menu link executes a javascript function (i.e. AJAX call), then the menu doens't disappear after the item is
clicked. The fix is to replace in the compressed menu.js file the code:
function TML(TME) {return Boolean(this.TMF[TME].TMD[1])}
with the code:
function TML(TME) {
if (Boolean(this.TMF[TME].TMD[1]) ) {
var TMf=this.TMF[TME];
TMf.TMY.className=TMf.TMg(0,0);
TMf.TMh.className=TMf.TMg(1,0);
TMf.TMi(7);this.TMe=setTimeout('TMA['+this.TME+'].TMJ();',0);
return true
} else {
return false
}
}
|
|
|
tigra
Administrator
Posts: 1982
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 10/25/2006 at 10:41 PM |
|
|
in GOLD version use 'cc' item scope key or 'clickcollapse' level scope key
|
|
|