Skip to content

Commit

Permalink
后台日期选择框增加中文显示
Browse files Browse the repository at this point in the history
  • Loading branch information
atjiu committed May 24, 2019
1 parent e679fe3 commit 371d390
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/resources/templates/admin/comment/list.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,14 @@
<script>
$(function () {
$("#startDate").datepicker({
language: 'zh-CN',
autoclose: true,
format: 'yyyy-mm-dd',
todayBtn: true,
todayHighlight: true,
});
$("#endDate").datepicker({
language: 'zh-CN',
autoclose: true,
format: 'yyyy-mm-dd',
todayBtn: true,
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/templates/admin/layout/layout.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-toast-plugin/1.3.2/jquery.toast.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.8.0/js/bootstrap-datepicker.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.8.0/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<script src="/static/admin/js/app.min.js"></script>

<script>
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/templates/admin/topic/list.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,14 @@
<script>
$(function () {
$("#startDate").datepicker({
language: 'zh-CN',
autoclose: true,
format: 'yyyy-mm-dd',
todayBtn: true,
todayHighlight: true,
});
$("#endDate").datepicker({
language: 'zh-CN',
autoclose: true,
format: 'yyyy-mm-dd',
todayBtn: true,
Expand Down

0 comments on commit 371d390

Please sign in to comment.