Commit ead2502f authored by fred's avatar fred

chat: add nick to prompt

parent fe7631a5
......@@ -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) {
......@@ -43,7 +43,7 @@
<div class="nick">Pseudo ? <input name="nick"> <button>Se connecter</button></div>
<div class="commands" style="display: none;">
&gt;&nbsp;&nbsp;<input id="msg" name="msg"> <button id="send">ok</button>
<span class="prompt">&gt;</span>&nbsp;&nbsp;<input id="msg" name="msg"> <button id="send">ok</button>
<div id="chat" data-chatroom="{{emission.slug}}">
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