Commit a10347d037bdafaaf60acccaf9b6c83aa635e602
1 parent
d86a56df
页面时间设置加个补零
Showing
2 changed files
with
5 additions
and
3 deletions
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,7 +499,6 @@ if (typeof jQuery === 'undefined') { throw new Error('Jasny Bootstrap\'s JavaScr | ||
| 499 | this.$element = $(element) | 499 | this.$element = $(element) |
| 500 | this.options = $.extend({}, Inputmask.DEFAULTS, options) | 500 | this.options = $.extend({}, Inputmask.DEFAULTS, options) |
| 501 | this.mask = String(this.options.mask) | 501 | this.mask = String(this.options.mask) |
| 502 | - | ||
| 503 | this.init() | 502 | this.init() |
| 504 | this.listen() | 503 | this.listen() |
| 505 | 504 | ||
| @@ -757,7 +756,10 @@ if (typeof jQuery === 'undefined') { throw new Error('Jasny Bootstrap\'s JavaScr | @@ -757,7 +756,10 @@ if (typeof jQuery === 'undefined') { throw new Error('Jasny Bootstrap\'s JavaScr | ||
| 757 | //try to place characters where they belong | 756 | //try to place characters where they belong |
| 758 | var test = this.$element.val() | 757 | var test = this.$element.val() |
| 759 | var lastMatch = -1 | 758 | var lastMatch = -1 |
| 760 | - | 759 | + if (this.mask==99.99){ |
| 760 | + test=test.replaceAll("_",0); | ||
| 761 | + this.$element.val(test); | ||
| 762 | + } | ||
| 761 | for (var i = 0, pos = 0; i < len; i++) { | 763 | for (var i = 0, pos = 0; i < len; i++) { |
| 762 | if (this.tests[i]) { | 764 | if (this.tests[i]) { |
| 763 | this.buffer[i] = this.options.placeholder | 765 | this.buffer[i] = this.options.placeholder |
bsthLineProfiles/src/main/resources/templates/include.html
| @@ -142,7 +142,7 @@ | @@ -142,7 +142,7 @@ | ||
| 142 | rel="stylesheet" /> | 142 | rel="stylesheet" /> |
| 143 | </div> | 143 | </div> |
| 144 | <div th:fragment="jasny-bootstrap-js"> | 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 | </div> | 146 | </div> |
| 147 | 147 | ||
| 148 | <!-- fileinput文件上传插件 --> | 148 | <!-- fileinput文件上传插件 --> |