correctly set indentation preferences when changing languages
This commit is contained in:
+4
-1
@@ -73,7 +73,7 @@ define([
|
|||||||
|
|
||||||
var proxy = Cryptpad.getProxy();
|
var proxy = Cryptpad.getProxy();
|
||||||
|
|
||||||
var updateIndentSettings = function () {
|
var updateIndentSettings = APP.updateIndentSettings = function () {
|
||||||
var indentUnit = proxy[indentKey];
|
var indentUnit = proxy[indentKey];
|
||||||
var useTabs = proxy[useTabsKey];
|
var useTabs = proxy[useTabsKey];
|
||||||
setIndentation(
|
setIndentation(
|
||||||
@@ -208,6 +208,9 @@ define([
|
|||||||
$previewContainer.hide();
|
$previewContainer.hide();
|
||||||
APP.$previewButton.removeClass('active');
|
APP.$previewButton.removeClass('active');
|
||||||
$codeMirror.addClass('fullPage');
|
$codeMirror.addClass('fullPage');
|
||||||
|
if (typeof(APP.updateIndentSettings) === 'function') {
|
||||||
|
APP.updateIndentSettings();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
config.onInit = function (info) {
|
config.onInit = function (info) {
|
||||||
|
|||||||
Reference in New Issue
Block a user