Hide 'Server' Label when hiding server input

This commit is contained in:
pzia 2015-03-17 11:27:43 +01:00
parent d0b8a3870b
commit a629e0cc61
2 changed files with 2 additions and 1 deletions

View File

@ -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'),

View File

@ -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">