修改BUG:网站设置支持默认皮肤选择
This commit is contained in:
parent
e97db1a077
commit
96fc494fef
|
@ -57,16 +57,14 @@
|
||||||
id: 'cssSave',
|
id: 'cssSave',
|
||||||
click: function (row, data) {
|
click: function (row, data) {
|
||||||
var cssDefine = $('#dictCssDefine').val();
|
var cssDefine = $('#dictCssDefine').val();
|
||||||
if (cssDefine) {
|
$.bc({
|
||||||
$.bc({
|
url: Settings.url, data: { name: '使用样式', code: cssDefine, category: '当前样式' }, title: '网站样式',
|
||||||
url: Settings.url, data: { name: '使用样式', code: cssDefine, category: '当前样式' }, title: '网站样式',
|
callback: function (result) {
|
||||||
callback: function (result) {
|
if (result) {
|
||||||
if (result) {
|
window.setTimeout(function () { window.location.reload(true); }, 1000);
|
||||||
window.setTimeout(function () { window.location.reload(true); }, 1000);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -167,7 +165,7 @@
|
||||||
Id: 1, url: Dicts.url, data: { type: 'css' }, swal: false,
|
Id: 1, url: Dicts.url, data: { type: 'css' }, swal: false,
|
||||||
callback: function (result) {
|
callback: function (result) {
|
||||||
var html = result.map(function (ele, index) { return $.format('<li><a href="#" data-val="{1}">{0}</a></li>', ele.Name, ele.Code); }).join('');
|
var html = result.map(function (ele, index) { return $.format('<li><a href="#" data-val="{1}">{0}</a></li>', ele.Name, ele.Code); }).join('');
|
||||||
$('#cssContainer').html(html);
|
$('#cssContainer').append(html);
|
||||||
$.bc({
|
$.bc({
|
||||||
Id: 1, url: Dicts.url, data: { type: 'activeCss' }, swal: false,
|
Id: 1, url: Dicts.url, data: { type: 'activeCss' }, swal: false,
|
||||||
callback: function (result) {
|
callback: function (result) {
|
||||||
|
|
|
@ -46,12 +46,12 @@
|
||||||
<div class="form-group col-xs-12">
|
<div class="form-group col-xs-12">
|
||||||
<label class="control-label">网站样式</label>
|
<label class="control-label">网站样式</label>
|
||||||
<div class="dropdown lgbDropdown">
|
<div class="dropdown lgbDropdown">
|
||||||
<a id="dictCssDefine" class="btn btn-success" data-toggle="dropdown" data-default-val="site.css">
|
<a id="dictCssDefine" class="btn btn-success" data-toggle="dropdown" data-default-val="">
|
||||||
<span>默认样式</span>
|
<span>默认样式</span>
|
||||||
<span class="caret"></span>
|
<span class="caret"></span>
|
||||||
</a>
|
</a>
|
||||||
<ul class="dropdown-menu" role="menu" id="cssContainer">
|
<ul class="dropdown-menu" role="menu" id="cssContainer">
|
||||||
<li><a href="#" data-val="site.css">默认样式</a></li>
|
<li><a href="#" data-val="">默认样式</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<button class="btn btn-default pull-right" type="button" id="cssSave">保存</button>
|
<button class="btn btn-default pull-right" type="button" id="cssSave">保存</button>
|
||||||
|
|
Loading…
Reference in New Issue