[open-ils-commits] r11322 - trunk/Open-ILS/web/js/ui
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Nov 24 15:23:18 EST 2008
Author: erickson
Date: 2008-11-24 15:23:14 -0500 (Mon, 24 Nov 2008)
New Revision: 11322
Modified:
trunk/Open-ILS/web/js/ui/base.js
Log:
submit login form on enter
Modified: trunk/Open-ILS/web/js/ui/base.js
===================================================================
--- trunk/Open-ILS/web/js/ui/base.js 2008-11-24 20:16:59 UTC (rev 11321)
+++ trunk/Open-ILS/web/js/ui/base.js 2008-11-24 20:23:14 UTC (rev 11322)
@@ -15,7 +15,10 @@
dojo.cookie('ses', openils.User.authtoken, {expires:-1, path:'/'}); // remove the cookie
openils.User.authtoken = null;
dojo.addOnLoad(function(){
- oilsLoginDialog.show();
+ oilsLoginDialog.show();
+ var func = function(){ oilsDoLogin(); };
+ openils.Util.registerEnterHandler(dojo.byId('oils-login-username'), func);
+ openils.Util.registerEnterHandler(dojo.byId('oils-login-password'), func);
dojo.byId('oils-login-workstation').innerHTML = workstation || '';
});
return;
More information about the open-ils-commits
mailing list