SMenu is a great extension but I faced one inconvenient:
If one item having sub-items is disabled, then hover still works and thus sub-items can still be selected (if not also disabled).
I managed to fix this problem by changing below line in menu.js:
h.onmouseover=new Function(this.n+’.st(’+i+’,true)’);
line replaced by:
var parentNodeClass = h.getElementsByTagName(‘a’)[0].className;
if (parentNodeClass.indexOf("disabled") == -1){
h.onmouseover=new Function(this.n+'.st('+i+',true)');
}
else{
h.onmouseover=new Function(this.n+'.st('+i+',false)');
}
That’s it. If item is disabled then sub-items are not displayed.