Skip to content

Commit

Permalink
fix username being set in querystrings
Browse files Browse the repository at this point in the history
  • Loading branch information
chapel committed Sep 2, 2011
1 parent 4d76ccd commit a107f08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion static/js/pad2.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function getParams()
{
var showControls = getUrlVars()["showControls"];
var showChat = getUrlVars()["showChat"];
var userName = getUrlVars()["userName"];
var userName = unescape(getUrlVars()["userName"]);
var showLineNumbers = getUrlVars()["showLineNumbers"];
var useMonospaceFont = getUrlVars()["useMonospaceFont"];
if(showControls)
Expand Down Expand Up @@ -245,6 +245,7 @@ function handshake()
if (globalUserName !== false)
{
pad.notifyChangeName(globalUserName); // Notifies the server
pad.myUserInfo.name = globalUserName;
$('#myusernameedit').attr({"value":globalUserName}); // Updates the current users UI
}
}
Expand Down

0 comments on commit a107f08

Please sign in to comment.