Commit de2f33f3 authored by JC Brand's avatar JC Brand

Send button must be translateable and should type "submit"

parent d2eadbdc
...@@ -125,7 +125,8 @@ ...@@ -125,7 +125,8 @@
title: this.model.get('fullname'), title: this.model.get('fullname'),
unread_msgs: __('You have unread messages'), unread_msgs: __('You have unread messages'),
info_close: __('Close this chat box'), info_close: __('Close this chat box'),
label_personal_message: __('Personal message') label_personal_message: __('Personal message'),
label_send: __('Send')
} }
) )
) )
......
...@@ -409,10 +409,11 @@ ...@@ -409,10 +409,11 @@
if (!this.$('.chat-area').length) { if (!this.$('.chat-area').length) {
this.$('.chatroom-body').empty() this.$('.chatroom-body').empty()
.append(tpl_chatarea({ .append(tpl_chatarea({
'unread_msgs': __('You have unread messages'),
'show_toolbar': _converse.show_toolbar,
'label_message': __('Message'), 'label_message': __('Message'),
'show_send_button': _converse.show_send_button 'label_send': __('Send'),
'show_send_button': _converse.show_send_button,
'show_toolbar': _converse.show_toolbar,
'unread_msgs': __('You have unread messages')
})) }))
.append(this.occupantsview.$el); .append(this.occupantsview.$el);
this.renderToolbar(tpl_chatroom_toolbar); this.renderToolbar(tpl_chatroom_toolbar);
...@@ -2098,7 +2099,7 @@ ...@@ -2098,7 +2099,7 @@
this.renderRoomFeatures, 100, {'leading': false} this.renderRoomFeatures, 100, {'leading': false}
); );
} }
var changed_features = {} var changed_features = {};
_.each(_.keys(model.changed), function (k) { _.each(_.keys(model.changed), function (k) {
if (!_.isNil(ROOM_FEATURES_MAP[k])) { if (!_.isNil(ROOM_FEATURES_MAP[k])) {
changed_features[ROOM_FEATURES_MAP[k]] = !model.changed[k]; changed_features[ROOM_FEATURES_MAP[k]] = !model.changed[k];
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<textarea type="text" class="chat-textarea {[ if (show_send_button) { ]}chat-textarea-send-button{[ } ]}" <textarea type="text" class="chat-textarea {[ if (show_send_button) { ]}chat-textarea-send-button{[ } ]}"
placeholder="{{{label_message}}}"/> placeholder="{{{label_message}}}"/>
{[ if (show_send_button) { ]} {[ if (show_send_button) { ]}
<button type="button" class="pure-button send-button">Send</button> <button type="submit" class="pure-button send-button">{{{ label_send }}}</button>
{[ } ]} {[ } ]}
</form> </form>
</div> </div>
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
placeholder="{{{label_personal_message}}}"/> placeholder="{{{label_personal_message}}}"/>
{[ if (show_send_button) { ]} {[ if (show_send_button) { ]}
<button type="button" class="pure-button send-button">Send</button> <button type="submit" class="pure-button send-button">{{{ label_send }}}</button>
{[ } ]} {[ } ]}
</form> </form>
{[ } ]} {[ } ]}
......
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