IE11 fixes

This commit is contained in:
JC Brand 2018-01-29 14:39:59 +01:00
parent f724f49087
commit 476e1d79cd
3 changed files with 827 additions and 758 deletions

View File

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

1571
dist/converse.js vendored

File diff suppressed because it is too large Load Diff

View File

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