+# vim: set encoding=utf-8 :
r1 = Rol(nombre='admin', permisos=(entregar_tp, admin))
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>edit</title>
-<script>
- MochiKit.Signal.connect(window, 'onload', function() { $('form_nombre').focus(); });
-</script>
+<script>MochiKit.DOM.focusOnLoad('form_nombre');</script>
</head>
<body>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>new</title>
-<script>
- MochiKit.Signal.connect(window, 'onload', function() { $('form_nombre').focus(); });
-</script>
+<script>MochiKit.DOM.focusOnLoad('form_nombre');</script>
</head>
<body>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>edit</title>
-<script>
- MochiKit.Signal.connect(window, 'onload', function() { $('form_usuario').focus(); });
-</script>
+<script>MochiKit.DOM.focusOnLoad('form_usuario');</script>
</head>
<body>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>new</title>
-<script>
- MochiKit.Signal.connect(window, 'onload', function() { $('form_usuario').focus(); });
-</script>
+<script>MochiKit.DOM.focusOnLoad('form_usuario');</script>
</head>
<body>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>edit</title>
-<script>
- MochiKit.Signal.connect(window, 'onload', function() { $('form_nombre').focus(); });
-</script>
+<script>MochiKit.DOM.focusOnLoad('form_nombre');</script>
</head>
<body>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>new</title>
-<script>
- MochiKit.Signal.connect(window, 'onload', function() { $('form_nombre').focus(); });
-</script>
+<script>MochiKit.DOM.focusOnLoad('form_nombre');</script>
</head>
<body>
}
</style>
- <script>
- MochiKit.Signal.connect(window, 'onload', function() { $('form_login_user').focus(); });
- </script>
+ <script>MochiKit.DOM.focusOnLoad('form_login_user');</script>
</head>
<body>