Hide 'Server' Label when hiding server input
This commit is contained in:
parent
d0b8a3870b
commit
a629e0cc61
@ -1760,6 +1760,7 @@
|
|||||||
this.$el.html(
|
this.$el.html(
|
||||||
converse.templates.room_panel({
|
converse.templates.room_panel({
|
||||||
'server_input_type': converse.hide_muc_server && 'hidden' || 'text',
|
'server_input_type': converse.hide_muc_server && 'hidden' || 'text',
|
||||||
|
'server_label_global_attr': converse.hide_muc_server && ' hidden' || '',
|
||||||
'label_room_name': __('Room name'),
|
'label_room_name': __('Room name'),
|
||||||
'label_nickname': __('Nickname'),
|
'label_nickname': __('Nickname'),
|
||||||
'label_server': __('Server'),
|
'label_server': __('Server'),
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<label>{{label_nickname}}</label>
|
<label>{{label_nickname}}</label>
|
||||||
<input type="text" name="nick" class="new-chatroom-nick"
|
<input type="text" name="nick" class="new-chatroom-nick"
|
||||||
placeholder="{{label_nickname}}"/>
|
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"
|
<input type="{{server_input_type}}" name="server" class="new-chatroom-server"
|
||||||
placeholder="{{label_server}}"/>
|
placeholder="{{label_server}}"/>
|
||||||
<div class="button-group">
|
<div class="button-group">
|
||||||
|
Loading…
Reference in New Issue
Block a user