Allow authorship background colors to be disabled with a parameter

This commit is contained in:
John McLear 2011-09-04 13:48:53 +01:00
parent ecd486e440
commit 1bfd0e4707
2 changed files with 22 additions and 0 deletions

View file

@ -61,6 +61,8 @@ var padeditor = (function()
{
pad.changeViewOption('useMonospaceFont', $("#viewfontmenu").val() == 'monospace');
});
noColors = !noColors; // Inversed so we can pass it to showauthorcolors
},
setViewOptions: function(newOptions)
{
@ -84,6 +86,9 @@ var padeditor = (function()
v = getOption('useMonospaceFont', false);
self.ace.setProperty("textface", (v ? "monospace" : "Arial, sans-serif"));
$("#viewfontmenu").val(v ? "monospace" : "normal");
self.ace.setProperty("showsauthorcolors", noColors);
},
initViewZoom: function()
{