set prefs and get prefs
parent
444bbf4cbc
commit
a151c207c2
|
@ -525,6 +525,15 @@ var pad = {
|
|||
if(padcookie.getPref("showAuthorshipColors") == false){
|
||||
pad.changeViewOption('showAuthorColors', false);
|
||||
}
|
||||
if(padcookie.getPref("showLineNumbers") == false){
|
||||
pad.changeViewOption('showLineNumbers', false);
|
||||
}
|
||||
if(padcookie.getPref("rtlIsTrue") == true){
|
||||
pad.changeViewOption('rtlIsTrue', true);
|
||||
}
|
||||
if(padcookie.getPref("useMonospaceFont") == true){
|
||||
pad.changeViewOption('useMonospaceFont', true);
|
||||
}
|
||||
hooks.aCallAll("postAceInit", {ace: padeditor.ace, pad: pad});
|
||||
}
|
||||
},
|
||||
|
@ -575,6 +584,7 @@ var pad = {
|
|||
for (var k in opts.view)
|
||||
{
|
||||
pad.padOptions.view[k] = opts.view[k];
|
||||
padcookie.setPref(k, opts.view[k]);
|
||||
}
|
||||
padeditor.setViewOptions(pad.padOptions.view);
|
||||
}
|
||||
|
@ -728,10 +738,8 @@ var pad = {
|
|||
},
|
||||
handleIsFullyConnected: function(isConnected, isInitialConnect)
|
||||
{
|
||||
|
||||
pad.determineChatVisibility(isConnected && !isInitialConnect);
|
||||
pad.determineAuthorshipColorsVisibility();
|
||||
|
||||
},
|
||||
determineChatVisibility: function(asNowConnectedFeedback){
|
||||
var chatVisCookie = padcookie.getPref('chatAlwaysVisible');
|
||||
|
|
Loading…
Reference in New Issue