Hi,
I suppose that you're talking about the line "82" and not "182".
But unfortunately, the content is just perfectly valid and optimal.
var button = document.getElementById(\'login_view_action\'),
currentForm = document.forms[form];
As you can see, there is a coma, which indicate that the "var" is continuning in the next line, where the variable "currentForm" is also initialized.
For the lines 183-187
if(document.addEventListener)
document.addEventListener("keypress", hkKeyPress);
else
document.attachEvent("onkeypress", hkKeyPress);
Once again, the code is perfectly valid and optimal.
There is no need of brackets in a if (or else) statement if there is just one instruction in that statement.
And most of compressor and removing these brackets in order to gain characters and provide a javascript file more minified.
I can agree that the javascript code in the user/view.html.php file could be refactored and follow the new standards we introduced in recent releases.
Nevertheless, the current code is working fine and the lines you mentioned are totally valid.
Regards,