Commit 6a419cc1 authored by JC Brand's avatar JC Brand

Bugfix. Properly insert error messages and spinner

now that messages appear in reverse order due to flexbox
parent 1879c18c
...@@ -570,7 +570,7 @@ converse.plugins.add('converse-chatview', { ...@@ -570,7 +570,7 @@ converse.plugins.add('converse-chatview', {
showErrorMessage (message) { showErrorMessage (message) {
this.content.insertAdjacentHTML( this.content.insertAdjacentHTML(
'beforeend', 'afterBegin',
tpl_error_message({'message': message, 'isodate': (new Date()).toISOString() }) tpl_error_message({'message': message, 'isodate': (new Date()).toISOString() })
); );
}, },
...@@ -578,9 +578,9 @@ converse.plugins.add('converse-chatview', { ...@@ -578,9 +578,9 @@ converse.plugins.add('converse-chatview', {
addSpinner (append=false) { addSpinner (append=false) {
if (_.isNull(this.el.querySelector('.spinner'))) { if (_.isNull(this.el.querySelector('.spinner'))) {
if (append) { if (append) {
this.content.insertAdjacentHTML('beforeend', tpl_spinner()); this.content.insertAdjacentHTML('afterBegin', tpl_spinner());
} else { } else {
this.content.insertAdjacentHTML('afterbegin', tpl_spinner()); this.content.insertAdjacentHTML('beforeEnd', tpl_spinner());
} }
} }
}, },
......
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