]> git.llucax.com Git - z.facultad/75.52/sercom.git/blobdiff - sercom/controllers.py
Pasar JS a widget de formulario.
[z.facultad/75.52/sercom.git] / sercom / controllers.py
index 88880c5aeedd78579addaf26b342135086c0e876..714869a763e8c1b30891a96efdf0d5084b9101b1 100644 (file)
@@ -62,6 +62,8 @@ class Root(controllers.RootController):
 
         login_form = w.TableForm(fields=fields, action=previous_url,
                         submit_text=_(u'Ingresar'), submit=submit)
+        login_form.javascript.append(
+            w.JSSource("MochiKit.DOM.focusOnLoad('form_login_user');"))
 
         values = dict(forward_url=forward_url)
         values.update(request.params)