Commit 476e1d79 authored by JC Brand's avatar JC Brand

IE11 fixes

parent f724f490
......@@ -4,6 +4,7 @@
### Bugfixes
- Various fixes for IE11.
- Could not register on Ejabberd 18. `"Missing attribute 'id' in tag qualified by namespace 'jabber:client'"`
- #993 `moment.format` is not a function error when sending a message.
- #994 TypeError when using the `user.login` API.
......
This diff is collapsed.
......@@ -52,7 +52,7 @@
render () {
// Replace the default dropdown with something nicer
const select = this.el.querySelector('select#select-xmpp-status')
const options = this.el.querySelectorAll('#select-xmpp-status option');
const chat_status = this.model.get('status') || 'offline';
this.el.innerHTML = tpl_choose_status();
......@@ -67,15 +67,10 @@
// iterate through all the <option> elements and add option values
const options_list = _.map(
select.querySelectorAll('option'),
function (el) {
return tpl_status_option({
'value': el.value,
'text': el.text
});
}
options,
(el) => tpl_status_option({'value': el.value, 'text': el.text })
);
const options_target = this.el.querySelector("#target dd ul");
const options_target = this.el.querySelector(".xmpp-status-menu");
options_target.classList.add('collapsed');
options_target.innerHTML = options_list.join('');
return this;
......
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