Posted - 07/01/2018 : 20:46:44
Hi Andy and Vince, After updating to v6.9.3 I encountered an issue with the Dynamic Category Menu; more specifically the Sub-Menu drop-down items.
(1) When the Horizontal Menu is loaded ...
[font=Courier New]<?php $menustyle="horizontalmenu1"; include ( $_SERVER["DOCUMENT_ROOT"] . "/vsadmin/inc/[maroon]incmenu.php[/maroon]") ?>[/font=Courier New]
The drop-down arrow to indicate Sub-Menu exists disappears; thus Sub-Menu items are not accessible.
(2) When loaded as a Vertical Menu in the sidebar ...
[font=Courier New]<?php displayectmenu('[maroon]verticalmenu2[/maroon]'); ?>[/font=Courier New]
Again, there is no down-arrow displayed beside the Top-Level Menu Category and Sub-Menu Items display as an indented list.
Google Chrome Developer Tools reports these errors ...
[font=Courier New]Uncaught TypeError: Cannot set property 'onmouseover' of null at addsubsclass ((index):347) at (index):356
Uncaught TypeError: Cannot set property 'onclick' of null at addsubsclass ((index):345) at (index):685[/font=Courier New]
Those line numbers will have no significance on your test websites, but you can view my website [navy]itzap.com.au[/navy] There are Sub-categories under the "[navy]Webmasters[/navy]" menu.
The Javascript snippet concerned appears to be ...
[font=Courier New]function addsubsclass(mennum,menid,menutype){ for(var ei in em[mennum]){ men=document.getElementById('ect'+mennum+'_'+ei); if(menutype=='verticalmenu2') men.onclick=function(){return(ectChCk(this))}; else{ men.onmouseover=function(){openpop(this,menutype=='verticalmenu3'?true:false)}; men.onmouseout=function(){closepop(this)}; } if(typeof(emt[mennum][ei])=='boolean'){ if(men.className.indexOf('ectmenuhassub')==-1)men.className+=' ectmenuhassub'+(mennum+1); } } } em[0]={1:0,2:0,3:0,4:0,8:0,9:0,11:0,5:4,6:4};emt[0]=[];curmen[0]=0; addsubsclass(0,0,'horizontalmenu1')[/font=Courier New]
I can advise that, upon uploading the previous 6.9.2 version of [maroon]incmenu.php[/maroon], this issue does not occur. Something small you can fix in a jiffy, I bet.
Gary [img]https://itzap.com.au/pics/logo/itzap-website-design-works-mini-logo.png[/img]
|