From c734bde7dd1eb656214393d05c4f6045b55bb58a Mon Sep 17 00:00:00 2001 From: Sofian Benaissa Date: Tue, 13 Mar 2012 11:54:49 -0300 Subject: [PATCH] Fix the nocolor embed parameter --- static/js/pad_editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/pad_editor.js b/static/js/pad_editor.js index 3dd67544d..23c549146 100644 --- a/static/js/pad_editor.js +++ b/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"));