Gavick Pro ‘GK Gamebox’ Joomla Template – popup login disappears when clicking on username or password input in Chrome
Symptom:
In Google Chrome, when using the popup login form accessed from the login link at the top of the template, if you click on the username or password inputs, the popup disappears.
Cause:
The mootools script is designed so that when a user clicks out of the DOM object popup_login, it fades out. This is done with any general document click IF the mouse is out of popup_login. This is determined by checking a variable set by mouseenter and mouseleave.
In Chrome, mouseleave is triggered when you enter child elements – not our desired functionality!
Solution:
templatesgk_gameboxjsgk.script.js
130a131> <span style="white-space: pre;"> </span>$('popup_login').getElements('input').addEvent('mouseenter',function(){login_over = true;});
(Unix diff formatting)