Skip to content

Commit 6b94bbe

Browse files
committed
Pretty jquery datepicker
1 parent a240066 commit 6b94bbe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/jquery-ui-datepicker.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
function init(Survey, $) {
2-
32
$ = $ || window.$;
43
if (!$.fn.bootstrapDP && !!$.fn.datepicker && !!$.fn.datepicker.noConflict) {
54
$.fn.bootstrapDP = $.fn.datepicker.noConflict();
@@ -44,8 +43,8 @@ function init(Survey, $) {
4443
onSetValue: function(obj, value, jsonConv) {
4544
var newValue = value || "/";
4645
if(!!obj.shortDateFormat) {
47-
var regex = new RegExp(obj.dateSeparator, 'g');
48-
obj.shortDateFormat = obj.shortDateFormat.replace(regex, newValue);
46+
var regex = new RegExp(obj.dateSeparator, "g");
47+
obj.shortDateFormat = obj.shortDateFormat.replace(regex, newValue);
4948
}
5049
obj.setPropertyValue("dateSeparator", newValue);
5150
},

0 commit comments

Comments
 (0)