Commit 9085ed66 authored by JC Brand's avatar JC Brand

Merge pull request #340 from pzia/master

Hide 'Server' Label when hiding server input
parents d0b8a387 a629e0cc
......@@ -1760,6 +1760,7 @@
this.$el.html(
converse.templates.room_panel({
'server_input_type': converse.hide_muc_server && 'hidden' || 'text',
'server_label_global_attr': converse.hide_muc_server && ' hidden' || '',
'label_room_name': __('Room name'),
'label_nickname': __('Nickname'),
'label_server': __('Server'),
......
......@@ -5,7 +5,7 @@
<label>{{label_nickname}}</label>
<input type="text" name="nick" class="new-chatroom-nick"
placeholder="{{label_nickname}}"/>
<label>{{label_server}}</label>
<label{{server_label_global_attr}}>{{label_server}}</label>
<input type="{{server_input_type}}" name="server" class="new-chatroom-server"
placeholder="{{label_server}}"/>
<div class="button-group">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment