修改BUG:网站皮肤控件ID更改为css

This commit is contained in:
Argo-MacBookPro 2018-08-10 19:38:15 +08:00
parent 702d3289e9
commit 2e4ba267f7
3 changed files with 2 additions and 3 deletions

View File

@ -80,7 +80,7 @@
<div class="card-body"> <div class="card-body">
<div class="form-group"> <div class="form-group">
<div class="btn-group" role="group"> <div class="btn-group" role="group">
<button id="dictCssDefine" class="btn btn-success dropdown-select dropdown-toggle" data-toggle="dropdown" data-default-val="" value="@Model.Theme">默认样式</button> <button id="css" class="btn btn-success dropdown-select dropdown-toggle" data-toggle="dropdown" data-default-val="" value="@Model.Theme">默认样式</button>
<ul class="dropdown-menu" role="menu" id="cssContainer"> <ul class="dropdown-menu" role="menu" id="cssContainer">
<li><a href="#" data-val="">默认样式</a></li> <li><a href="#" data-val="">默认样式</a></li>
@foreach (var css in Model.Themes) @foreach (var css in Model.Themes)
@ -94,7 +94,6 @@
<li><a href="#" data-val="@css.Code">@css.Name</a></li> <li><a href="#" data-val="@css.Code">@css.Name</a></li>
} }
} }
</ul> </ul>
</div> </div>
</div> </div>

View File

@ -62,7 +62,6 @@
<li><a href="#" data-val="@css.Code">@css.Name</a></li> <li><a href="#" data-val="@css.Code">@css.Name</a></li>
} }
} }
</ul> </ul>
</div> </div>
<button class="btn btn-secondary" type="button" data-method="css">保存</button> <button class="btn btn-secondary" type="button" data-method="css">保存</button>

View File

@ -66,4 +66,5 @@
if ($('[enctype="multipart/form-data"]').is(":hidden")) { if ($('[enctype="multipart/form-data"]').is(":hidden")) {
$('.card-img').removeClass('d-none'); $('.card-img').removeClass('d-none');
} }
$('#css').dropdown('val');
}); });