Browse Source

add JavaScript snippets to focus the login and registration forms. fixes #46

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
92d9385f1a
  1. 10
      template/mumble/mumble.htm
  2. 8
      template/registration/login.html

10
template/mumble/mumble.htm

@ -218,7 +218,15 @@
activeTab: {{ DisplayTab }}, activeTab: {{ DisplayTab }},
items: [ items: [
{ contentEl: 'mumble_motd', title: '{% trans "Server Info" %}', autoScroll: true }, { contentEl: 'mumble_motd', title: '{% trans "Server Info" %}', autoScroll: true },
{ contentEl: 'mumble_registration', title: '{% trans "Registration" %}', autoScroll: true },
{ contentEl: 'mumble_registration',
title: '{% trans "Registration" %}',
autoScroll: true,
{% if user.is_authenticated %}
listeners: {
activate: function(){ Ext.fly("id_name").focus() },
},
{% endif %}
},
{% if CurrentUserIsAdmin %} {% if CurrentUserIsAdmin %}
{ contentEl: 'mumble_admin', title: '{% trans "Administration" %}', autoScroll: true }, { contentEl: 'mumble_admin', title: '{% trans "Administration" %}', autoScroll: true },
{% endif %} {% endif %}

8
template/registration/login.html

@ -3,6 +3,14 @@
{% block Headline %}Login{% endblock %} {% block Headline %}Login{% endblock %}
{% block HeadTag %}
<script type="text/javascript">
Ext.onReady( function(){
Ext.fly("id_username").focus();
} );
</script>
{% endblock %}
{% block Content %} {% block Content %}
<h2>Login</h2> <h2>Login</h2>

Loading…
Cancel
Save