added function Outerclick (event-view)

Added the function Outerclick to get the validation for selected
categories more inline with Joomla. The cats-box is having the blue
color. When no cats are selected the box-border is red and will disapper
when a cat is selected and clicked outside the box.