equal
deleted
inserted
replaced
500 self.w(u'</tr><tr>\n') |
500 self.w(u'</tr><tr>\n') |
501 self.w(u'<td> </td><td><input type="submit" class="loginButton right" value="%s" />\n</td>' % _('log in')) |
501 self.w(u'<td> </td><td><input type="submit" class="loginButton right" value="%s" />\n</td>' % _('log in')) |
502 self.w(u'</tr>\n') |
502 self.w(u'</tr>\n') |
503 self.w(u'</table>\n') |
503 self.w(u'</table>\n') |
504 self.w(u'</form>\n') |
504 self.w(u'</form>\n') |
505 # XXX doesn't seem to work, rewrite this |
505 self.req.html_headers.add_onload('jQuery("#__login:visible").focus()') |
506 self.w(u'''<script type="text/javascript">if(document.getElementById("%s").className != "hidden") |
|
507 {$('login_form').__login.focus()}</script>''' % id) |
|
508 |
506 |
509 |
507 |
510 def login_form_url(config, req): |
508 def login_form_url(config, req): |
511 if req.https: |
509 if req.https: |
512 return req.url() |
510 return req.url() |