correctly set indentation preferences when changing languages

pull/1/head
ansuz 7 years ago
parent 8f03919fd7
commit a99eb9365e

@ -73,7 +73,7 @@ define([
var proxy = Cryptpad.getProxy();
var updateIndentSettings = function () {
var updateIndentSettings = APP.updateIndentSettings = function () {
var indentUnit = proxy[indentKey];
var useTabs = proxy[useTabsKey];
setIndentation(
@ -208,6 +208,9 @@ define([
$previewContainer.hide();
APP.$previewButton.removeClass('active');
$codeMirror.addClass('fullPage');
if (typeof(APP.updateIndentSettings) === 'function') {
APP.updateIndentSettings();
}
};
config.onInit = function (info) {

Loading…
Cancel
Save