summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2015-06-08 17:13:46 +0100
committerJohn McLear <john@mclear.co.uk>2015-06-08 17:13:46 +0100
commit5a5d245c06fda5398986f15659bb1ac9e858b3e2 (patch)
tree3bfffa249b32621abbba93eea6ade17c31b1ac56
parent2fa2dc8a0310c7d5c24fab7fd522ee6aac9b7d1e (diff)
downloadetherpad-lite-5a5d245c06fda5398986f15659bb1ac9e858b3e2.zip
fix issues with redrawing focus back to input element would lose param selected name
-rw-r--r--src/static/js/pad.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/static/js/pad.js b/src/static/js/pad.js
index 03eff4ba..e820b76f 100644
--- a/src/static/js/pad.js
+++ b/src/static/js/pad.js
@@ -115,9 +115,9 @@ var getParameters = [
{ name: "showLineNumbers", checkVal: "false", callback: function(val) { settings.LineNumbersDisabled = true; } },
{ name: "useMonospaceFont", checkVal: "true", callback: function(val) { settings.useMonospaceFontGlobal = true; } },
// If the username is set as a parameter we should set a global value that we can call once we have initiated the pad.
- { name: "userName", checkVal: null, callback: function(val) { settings.globalUserName = decodeURIComponent(val); } },
+ { name: "userName", checkVal: null, callback: function(val) { settings.globalUserName = decodeURIComponent(val); clientVars.userName = decodeURIComponent(val); } },
// If the userColor is set as a parameter, set a global value to use once we have initiated the pad.
- { name: "userColor", checkVal: null, callback: function(val) { settings.globalUserColor = decodeURIComponent(val); } },
+ { name: "userColor", checkVal: null, callback: function(val) { settings.globalUserColor = decodeURIComponent(val); clientVars.userColor = decodeURIComponent(val); } },
{ name: "rtl", checkVal: "true", callback: function(val) { settings.rtlIsTrue = true } },
{ name: "alwaysShowChat", checkVal: "true", callback: function(val) { chat.stickToScreen(); } },
{ name: "chatAndUsers", checkVal: "true", callback: function(val) { chat.chatAndUsers(); } },