Permalink
Browse files

Fix the nocolor embed parameter

  • Loading branch information...
1 parent 1339f6c commit 7f291532cb2b4845e2612542ea6cf38579f6efdb @sfyn sfyn committed with rossmeissl Mar 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 static/js/pad_editor.js
View
@@ -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"));

0 comments on commit 7f29153

Please sign in to comment.