summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSofian Benaissa <sofian@koumbit.org>2012-03-13 11:54:49 -0300
committerSofian Benaissa <sofian@koumbit.org>2012-04-02 16:35:18 -0400
commitc55f54b972e42cdaef6cb402d84027bd39ac5774 (patch)
tree5ceca0fe767f72cd41b304e3db4af39a2efdcad0 /src
parent9ecd864ac6a713c58b393ee64f96365eabba8fab (diff)
downloadetherpad-lite-c55f54b972e42cdaef6cb402d84027bd39ac5774.zip
Fix the nocolor embed parameter
Diffstat (limited to 'src')
-rw-r--r--src/static/js/pad_editor.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/static/js/pad_editor.js b/src/static/js/pad_editor.js
index 12f83aeb..b8a4ea0e 100644
--- a/src/static/js/pad_editor.js
+++ b/src/static/js/pad_editor.js
@@ -87,8 +87,6 @@ var padeditor = (function()
return defaultValue;
}
- self.ace.setProperty("showsauthorcolors", !settings.noColors);
-
self.ace.setProperty("rtlIsTrue", settings.rtlIsTrue);
var v;
@@ -100,6 +98,8 @@ var padeditor = (function()
v = getOption('showAuthorColors', true);
self.ace.setProperty("showsauthorcolors", v);
padutils.setCheckbox($("#options-colorscheck"), v);
+ // Override from parameters
+ self.ace.setProperty("showsauthorcolors", !settings.noColors);
v = getOption('useMonospaceFont', false);
self.ace.setProperty("textface", (v ? "monospace" : "Arial, sans-serif"));