tk
Newbie
Posts: 1
Registered: 4/15/2006
Member Is Offline
|
| posted on 4/15/2006 at 12:45 AM |
|
|
Null
I notice you have this function in the menu.js file
function menu_onclick (n_id) {
// don't go anywhere if item has no link defined
return Boolean(this.a_index[n_id].a_config[1]);
}
How do I create an alert if the link is not defined?
|
|
|
tigra
Administrator
Posts: 1963
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 4/15/2006 at 12:09 PM |
|
|
function menu_onclick (n_id) {
if (!this.a_index[n_id].a_config[1])
alert('gacha!');
// don't go anywhere if item has no link defined
return Boolean(this.a_index[n_id].a_config[1]);
}
|
|
|