X-Git-Url: https://git.llucax.com/software/sercom.git/blobdiff_plain/357be9e396cadfeaa3814fd29fcbf28baaf7fa2d..3a87d3bf6e5e7525c3b381df94b4d3c1304d237b:/sercom/subcontrollers/enunciado/__init__.py diff --git a/sercom/subcontrollers/enunciado/__init__.py b/sercom/subcontrollers/enunciado/__init__.py index 86bc1f8..9527e83 100644 --- a/sercom/subcontrollers/enunciado/__init__.py +++ b/sercom/subcontrollers/enunciado/__init__.py @@ -54,6 +54,7 @@ form = TableForm(fields=[ TextField(name='descripcion', label=_(u'Descripción'), validator=validators.UnicodeString(not_empty=False, max=255, strip=True)), ]) +form.javascript.append(JSSource("MochiKit.DOM.focusOnLoad('form_nombre');")) class EnunciadoController(controllers.Controller, identity.SecureResource): """Basic model admin interface"""