Merge pull request #434 from jhollinger/unknown_message
Unknown message
This commit is contained in:
commit
da1fbaad9a
|
@ -570,16 +570,6 @@ var pad = {
|
||||||
};
|
};
|
||||||
options.view[key] = value;
|
options.view[key] = value;
|
||||||
pad.handleOptionsChange(options);
|
pad.handleOptionsChange(options);
|
||||||
// if the request isn't to hide line numbers then broadcast this to other users
|
|
||||||
if (key != "showLineNumbers" && key != "useMonospaceFont")
|
|
||||||
{
|
|
||||||
pad.collabClient.sendClientMessage(
|
|
||||||
{
|
|
||||||
type: 'padoptions',
|
|
||||||
options: options,
|
|
||||||
changedBy: pad.myUserInfo.name || "unnamed"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
handleOptionsChange: function(opts)
|
handleOptionsChange: function(opts)
|
||||||
{
|
{
|
||||||
|
|
|
@ -75,8 +75,6 @@ var padeditor = (function()
|
||||||
{
|
{
|
||||||
pad.changeViewOption('useMonospaceFont', $("#viewfontmenu").val() == 'monospace');
|
pad.changeViewOption('useMonospaceFont', $("#viewfontmenu").val() == 'monospace');
|
||||||
});
|
});
|
||||||
|
|
||||||
settings.noColors = !settings.noColors; // Inversed so we can pass it to showauthorcolors
|
|
||||||
},
|
},
|
||||||
setViewOptions: function(newOptions)
|
setViewOptions: function(newOptions)
|
||||||
{
|
{
|
||||||
|
@ -88,7 +86,7 @@ var padeditor = (function()
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
self.ace.setProperty("showsauthorcolors", settings.noColors);
|
self.ace.setProperty("showsauthorcolors", !settings.noColors);
|
||||||
|
|
||||||
self.ace.setProperty("rtlIsTrue", settings.rtlIsTrue);
|
self.ace.setProperty("rtlIsTrue", settings.rtlIsTrue);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue