Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Daron
panikweb
Commits
ead2502f
Commit
ead2502f
authored
Apr 20, 2017
by
fred
Browse files
chat: add nick to prompt
parent
fe7631a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
panikweb_templates/static/js/specifics.js
View file @
ead2502f
...
...
@@ -575,6 +575,7 @@ $(function() {
$
(
'
.nick button
'
).
on
(
'
click
'
,
function
()
{
window
.
localStorage
[
'
pa-nick
'
]
=
$
(
'
.nick input
'
).
val
();
var
nick
=
window
.
localStorage
[
'
pa-nick
'
];
$
(
'
.commands .prompt
'
).
text
(
nick
+
'
>
'
);
connection
=
new
Strophe
.
Connection
(
"
/http-bind
"
);
connection
.
connect
(
'
im.panik
'
,
null
,
function
(
status
,
error
)
{
...
...
panikweb_templates/templates/chat.html
View file @
ead2502f
...
...
@@ -43,7 +43,7 @@
<div
class=
"nick"
>
Pseudo ?
<input
name=
"nick"
>
<button>
Se connecter
</button></div>
<div
class=
"commands"
style=
"display: none;"
>
>
<input
id=
"msg"
name=
"msg"
>
<button
id=
"send"
>
ok
</button>
<span
class=
"prompt"
>
>
</span>
<input
id=
"msg"
name=
"msg"
>
<button
id=
"send"
>
ok
</button>
</div>
<div
id=
"chat"
data-chatroom=
"{{emission.slug}}"
>
...
...
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