X-Git-Url: https://git.llucax.com/software/sercom.git/blobdiff_plain/678f514772434db8525572e20ffa45e1d159764a..d47dd9949d44d12944f557b0efd80459b857ce74:/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"""