This commit is contained in:
Van 2014-12-01 15:19:59 +08:00
parent 330179f4f1
commit f74f1ae71c
2 changed files with 7 additions and 5 deletions

View File

@ -413,6 +413,8 @@ var menu = {
$okBtn.prop("disabled", true);
$("#themesLink").attr("href", config.staticServer + '/static/css/themes/' + $theme.val() + '.css');
editor.setOption("theme", $editorTheme.val());
}
});
}
@ -422,5 +424,5 @@ var menu = {
id: ".preference"
});
});
},
}
};

View File

@ -318,7 +318,7 @@
},
"wideSessionId": '{{.session.Id}}',
"editorTheme": '{{.user.Editor.Theme}}',
"latestSessionContent": {{.latestSessionContent}}
"latestSessionContent": {{.latestSessionContent}},
"editorTabSize": '{{.user.Editor.TabSize}}'
};
// 发往 Wide 的所有 AJAX 请求需要使用该函数创建请求参数.