Merge pull request #152 from chapel/main

fix username being set in querystrings
This commit is contained in:
John McLear 2011-09-02 15:45:35 -07:00
commit ecd486e440
1 changed files with 2 additions and 1 deletions

View File

@ -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)
@ -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
}
}