Commit e0aaeb66 authored by JC Brand's avatar JC Brand

updates #161

* Fix typo which broke MUC file upload
* Remove unused method
* Move file input into li element
parent a15c9e54
...@@ -497,7 +497,7 @@ ...@@ -497,7 +497,7 @@
className: 'chatbox chatroom hidden', className: 'chatbox chatroom hidden',
is_chatroom: true, is_chatroom: true,
events: { events: {
'change .input.fileupload': 'onFileSelection', 'change input.fileupload': 'onFileSelection',
'click .close-chatbox-button': 'close', 'click .close-chatbox-button': 'close',
'click .configure-chatroom-button': 'getAndRenderConfigurationForm', 'click .configure-chatroom-button': 'getAndRenderConfigurationForm',
'click .new-msgs-indicator': 'viewUnreadMessages', 'click .new-msgs-indicator': 'viewUnreadMessages',
......
...@@ -339,18 +339,6 @@ ...@@ -339,18 +339,6 @@
return jid + (nick !== null ? `/${nick}` : ""); return jid + (nick !== null ? `/${nick}` : "");
}, },
sendChatRoomFile (text, to) {
const msgid = _converse.connection.getUniqueId();
const stanza = $msg({
'from': _converse.connection.jid,
'to': to,
'type': 'groupchat',
'id': msgid
}).c("body").t(text).up()
.c("x", {'xmlns': Strophe.NS.OUTOFBAND}).c('url').t(text).up();
_converse.connection.send(stanza);
},
sendChatState () { sendChatState () {
/* Sends a message with the status of the user in this chat session /* Sends a message with the status of the user in this chat session
* as taken from the 'chat_state' attribute of the chat box. * as taken from the 'chat_state' attribute of the chat box.
......
<input type="file" class="fileupload" multiple style="display:none"/>
<li class="upload-file"> <li class="upload-file">
<a class="fa fa-paperclip" title="{{{o.tooltip_upload_file}}}"></a> <a class="fa fa-paperclip" title="{{{o.tooltip_upload_file}}}"></a>
<input type="file" class="fileupload" multiple style="display:none"/>
</li> </li>
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