fixed #173
This commit is contained in:
parent
80185b71e7
commit
39601d2d3a
|
@ -408,6 +408,8 @@ var menu = {
|
||||||
|
|
||||||
var $okBtn = $("#dialogPreference").closest(".dialog-main").find(".dialog-footer > button:eq(0)");
|
var $okBtn = $("#dialogPreference").closest(".dialog-main").find(".dialog-footer > button:eq(0)");
|
||||||
$okBtn.prop("disabled", true);
|
$okBtn.prop("disabled", true);
|
||||||
|
|
||||||
|
$("#themesLink").attr("href", config.staticServer + '/static/css/themes/' + $theme.val() + '.css?')
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
{{range $index, $theme := .editorThemes}}
|
{{range $index, $theme := .editorThemes}}
|
||||||
<link rel="stylesheet" href="{{$.conf.StaticServer}}/static/js/overwrite/codemirror/theme/{{$theme}}.css">{{end}}
|
<link rel="stylesheet" href="{{$.conf.StaticServer}}/static/js/overwrite/codemirror/theme/{{$theme}}.css">{{end}}
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="{{.conf.StaticServer}}/static/js/lib/ztree/zTreeStyle.css">
|
<link rel="stylesheet" href="{{.conf.StaticServer}}/static/js/lib/ztree/zTreeStyle.css">
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
<link rel="stylesheet" href="{{.conf.StaticServer}}/static/css/start.css?{{.conf.StaticResourceVersion}}">
|
<link rel="stylesheet" href="{{.conf.StaticServer}}/static/css/start.css?{{.conf.StaticResourceVersion}}">
|
||||||
<link rel="stylesheet" href="{{.conf.StaticServer}}/static/css/about.css?{{.conf.StaticResourceVersion}}">
|
<link rel="stylesheet" href="{{.conf.StaticServer}}/static/css/about.css?{{.conf.StaticResourceVersion}}">
|
||||||
|
|
||||||
<link rel="stylesheet" href="{{.conf.StaticServer}}/static/css/themes/{{.user.Theme}}.css?{{.conf.StaticResourceVersion}}">
|
<link id="themesLink" rel="stylesheet" href="{{.conf.StaticServer}}/static/css/themes/{{.user.Theme}}.css?{{.conf.StaticResourceVersion}}">
|
||||||
|
|
||||||
<link rel="stylesheet" href="{{.conf.StaticServer}}/static/user/{{.session.Username}}/style.css?{{.conf.StaticResourceVersion}}">
|
<link rel="stylesheet" href="{{.conf.StaticServer}}/static/user/{{.session.Username}}/style.css?{{.conf.StaticResourceVersion}}">
|
||||||
|
|
||||||
|
@ -278,8 +278,8 @@
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
var config = {
|
var config = {
|
||||||
"pathSeparator": '{{.pathSeparator}}',
|
"staticServer": "{{.conf.StaticServer}}",
|
||||||
"latestSessionContent": {{.latestSessionContent}},
|
"pathSeparator": '{{.pathSeparator}}',
|
||||||
"label": {
|
"label": {
|
||||||
"restore_editor": "{{.i18n.restore_editor}}",
|
"restore_editor": "{{.i18n.restore_editor}}",
|
||||||
"max_editor": "{{.i18n.max_editor}}",
|
"max_editor": "{{.i18n.max_editor}}",
|
||||||
|
@ -317,7 +317,8 @@
|
||||||
"session": '{{.conf.SessionChannel}}'
|
"session": '{{.conf.SessionChannel}}'
|
||||||
},
|
},
|
||||||
"wideSessionId": '{{.session.Id}}',
|
"wideSessionId": '{{.session.Id}}',
|
||||||
"editorTheme": '{{.user.Editor.Theme}}'
|
"editorTheme": '{{.user.Editor.Theme}}',
|
||||||
|
"latestSessionContent": {{.latestSessionContent}}
|
||||||
};
|
};
|
||||||
// 发往 Wide 的所有 AJAX 请求需要使用该函数创建请求参数.
|
// 发往 Wide 的所有 AJAX 请求需要使用该函数创建请求参数.
|
||||||
function newWideRequest() {
|
function newWideRequest() {
|
||||||
|
|
Loading…
Reference in New Issue