Fix #683 - Disabling authorship colors doesn't work

pull/685/head
0ip 2012-04-30 17:40:29 +03:00
parent 34a2f8cb5d
commit 7a09d97731
1 changed files with 3 additions and 2 deletions

View File

@ -98,8 +98,9 @@ var padeditor = (function()
v = getOption('showAuthorColors', true); v = getOption('showAuthorColors', true);
self.ace.setProperty("showsauthorcolors", v); self.ace.setProperty("showsauthorcolors", v);
padutils.setCheckbox($("#options-colorscheck"), v); padutils.setCheckbox($("#options-colorscheck"), v);
// Override from parameters // Override from parameters if true
self.ace.setProperty("showsauthorcolors", !settings.noColors); if (settings.noColors !== false)
self.ace.setProperty("showsauthorcolors", !settings.noColors);
v = getOption('useMonospaceFont', false); v = getOption('useMonospaceFont', false);
self.ace.setProperty("textface", (v ? "monospace" : "Arial, sans-serif")); self.ace.setProperty("textface", (v ? "monospace" : "Arial, sans-serif"));