IE11 fixes
This commit is contained in:
parent
f724f49087
commit
476e1d79cd
|
@ -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
1571
dist/converse.js
vendored
File diff suppressed because it is too large
Load Diff
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user