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 ... <?php $menustyle="horizontalmenu1"; include ( $_SERVER["DOCUMENT_ROOT"] . "/vsadmin/inc/incmenu.php") ?>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 ... <?php displayectmenu('verticalmenu2'); ?>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 ... 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):685Those line numbers will have no significance on your test websites, but you can view my website itzap.com.auThere are Sub-categories under the " Webmasters" menu. The Javascript snippet concerned appears to be ... 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')I can advise that, upon uploading the previous 6.9.2 version of incmenu.php, this issue does not occur. Something small you can fix in a jiffy, I bet. Gary 
|