From 7a09d977310dd30b4a179f08149f246a7f6e1213 Mon Sep 17 00:00:00 2001 From: 0ip Date: Mon, 30 Apr 2012 17:40:29 +0300 Subject: [PATCH] Fix #683 - Disabling authorship colors doesn't work --- src/static/js/pad_editor.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/static/js/pad_editor.js b/src/static/js/pad_editor.js index b8a4ea0ee..cc8bbb6bd 100644 --- a/src/static/js/pad_editor.js +++ b/src/static/js/pad_editor.js @@ -98,8 +98,9 @@ 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); + // Override from parameters if true + if (settings.noColors !== false) + self.ace.setProperty("showsauthorcolors", !settings.noColors); v = getOption('useMonospaceFont', false); self.ace.setProperty("textface", (v ? "monospace" : "Arial, sans-serif"));