That's because for headers that are set to toggle "onClick" (versus "onMouseover"), any link associated with the header becomes disabled. This is to allow the sub menu to actually expand/contract when the header is clicked on, instead of just going straight to the target page.
What you can do is either set the toggle type to "mouseover" instead in the configuration code:
Code:
ddaccordion.init({
headerclass: "expandable", //Shared CSS class name of headers group that are expandable
contentclass: "categoryitems", //Shared CSS class name of contents group
revealtype: "mouseover", //Reveal content when user clicks or onmouseover the header? Valid value: "click" or "mouseover
"
"
Or if you must enable the headers to both toggle "onclick" and navigate to a URL, try commenting out the below line inside the .js file:
Code:
$('.'+config["headerclass"]).bind(config.revealtype, function(){
if (config.revealtype=="mouseenter"){
clearTimeout(config.revealdelay)
var headerindex=parseInt($(this).attr("headerindex"))
config.revealdelay=setTimeout(function(){ddaccordion.expandone(config["headerclass"], headerindex)}, config.mouseoverdelay || 0)
}
else{
$(this).trigger("evt_accordion")
return false //cancel default click behavior
}
})
Bookmarks