Hide disabled categories – K2 CCK
If you want to hide the categories that is disabled for a user you have to do the following:
You must find the page http://yoursite/components/com_k2/views/item/tmpl/form.php
and replace
if(window.ie){
var disabledOptions=$$(‘#catid option[disabled]‘);
$each(disabledOptions, function(option){
option.setStyle(‘height’, ’0px’);
});
}
with this code
var disabledOptions=$$(‘#catid option[disabled]‘);
option.remove(option.selectedIndex);
});
