2
0
JC Brand 7 жил өмнө
parent
commit
476e1d79cd
3 өөрчлөгдсөн 447 нэмэгдсэн , 434 устгасан
  1. 1 0
      CHANGES.md
  2. 442 425
      dist/converse.js
  3. 4 9
      src/converse-profile.js

+ 1 - 0
CHANGES.md

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

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 442 - 425
dist/converse.js


+ 4 - 9
src/converse-profile.js

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

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно