Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
82b7e284
Commit
82b7e284
authored
Apr 28, 2020
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use outerHTML to render existing nickname form
parent
60134c4d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
src/converse-muc-views.js
src/converse-muc-views.js
+9
-3
No files found.
src/converse-muc-views.js
View file @
82b7e284
...
...
@@ -1722,11 +1722,17 @@ converse.plugins.add('converse-muc-views', {
const
container
=
this
.
el
.
querySelector
(
'
.muc-bottom-panel
'
);
container
.
innerHTML
=
html
;
u
.
addClass
(
'
muc-bottom-panel--nickname
'
,
container
);
}
else
{
const
form
=
this
.
el
.
querySelector
(
'
.muc-nickname-form
'
);
if
(
form
)
{
sizzle
(
'
.spinner
'
,
this
.
el
).
forEach
(
u
.
removeElement
);
form
.
outerHTML
=
html
;
}
else
{
this
.
hideChatRoomContents
();
const
container
=
this
.
el
.
querySelector
(
'
.chatroom-body
'
);
container
.
insertAdjacentHTML
(
'
beforeend
'
,
html
);
}
}
u
.
safeSave
(
this
.
model
.
session
,
{
'
connection_status
'
:
converse
.
ROOMSTATUS
.
NICKNAME_REQUIRED
});
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment