javascript:avoid(0) in autonav
Permalink
Hi folks,
i'm building this site with bootstrap theme. And I just added autonav block for it.
Everythin is working ok but somehow my 1st level menu links with 2nd level under them do not work at all. I just got javascript:avoid(0) in browser. Menu links without 2nd level work ok.
What I have done wrong?? This is the first time this happens to me.
-->http://testi4.aada.fi
Here's part of the code:
// Mika
i'm building this site with bootstrap theme. And I just added autonav block for it.
Everythin is working ok but somehow my 1st level menu links with 2nd level under them do not work at all. I just got javascript:avoid(0) in browser. Menu links without 2nd level work ok.
What I have done wrong?? This is the first time this happens to me.
-->http://testi4.aada.fi
Here's part of the code:
//*** Step 2 of 2: Output menu HTML ***/ echo '<ul class="nav navbar-nav">'; //opens the top-level menu foreach ($navItems as $ni) { $b_arr['li_class']=""; $b_arr['a_class']=""; $b_arr['a_data']=''; $b_arr['arrow_code']=''; $b_arr['ul_class']=''; if ($ni->hasSubmenu && $displaySubPages!='none' ) { $b_arr=''; $b_arr['li_class']="dropdown"; $b_arr['a_class']="dropdown-toggle drop_a_custom"; $b_arr['ul_class']="drop_ul_custom"; if($ni->level ==1){ $ni->url='javascript:void(0)';
Viewing 15 lines of 41 lines. View entire code block.
// Mika