The feature to login after pressing enter is firing for other database forms. i.e. pressing enter in any filed on the formcauses a submit (?)
I have partially resolved the problem by only rendering the scriptblock when the user is anonymous but this still causes issues for public access forms like password resets etc..
if (userName.getCommon()=="Anonymous")
{
return true;
}
else
{
return false;
}}]]>
// I'm not sure why this works, id dialogDojoLogin doesn't exist...
var dlg = dijit.byId('dialogDojoLogin');
dojo.connect(dlg, 'onkeypress',
function(event) {
if (event.keyCode==dojo.keys.ENTER) {
login();
}
});
});]]>