Commit a10347d037bdafaaf60acccaf9b6c83aa635e602

Authored by yiming
1 parent d86a56df

页面时间设置加个补零

bsthLineProfiles/src/main/resources/static/ajax/libs/jasny/jasny-bootstrap.js
... ... @@ -499,7 +499,6 @@ if (typeof jQuery === 'undefined') { throw new Error('Jasny Bootstrap\'s JavaScr
499 499 this.$element = $(element)
500 500 this.options = $.extend({}, Inputmask.DEFAULTS, options)
501 501 this.mask = String(this.options.mask)
502   -
503 502 this.init()
504 503 this.listen()
505 504  
... ... @@ -757,7 +756,10 @@ if (typeof jQuery === 'undefined') { throw new Error('Jasny Bootstrap\'s JavaScr
757 756 //try to place characters where they belong
758 757 var test = this.$element.val()
759 758 var lastMatch = -1
760   -
  759 + if (this.mask==99.99){
  760 + test=test.replaceAll("_",0);
  761 + this.$element.val(test);
  762 + }
761 763 for (var i = 0, pos = 0; i < len; i++) {
762 764 if (this.tests[i]) {
763 765 this.buffer[i] = this.options.placeholder
... ...
bsthLineProfiles/src/main/resources/templates/include.html
... ... @@ -142,7 +142,7 @@
142 142 rel="stylesheet" />
143 143 </div>
144 144 <div th:fragment="jasny-bootstrap-js">
145   - <script th:src="@{/ajax/libs/jasny/jasny-bootstrap.min.js}"></script>
  145 + <script th:src="@{/ajax/libs/jasny/jasny-bootstrap.js}"></script>
146 146 </div>
147 147  
148 148 <!-- fileinput文件上传插件 -->
... ...