Skip to content

Commit e47ae75

Browse files
author
Martijn Gussekloo
committed
Added noDefault option to start without selected date
1 parent 970e19e commit e47ae75

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

datepicker.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
this.weekStart = options.weekStart||0;
2323
this.weekEnd = this.weekStart == 0 ? 6 : this.weekStart - 1;
2424
this.head();
25-
if (!this.element.prop("value")) {
25+
console.log(options);
26+
if (!this.element.prop("value")&&!options.noDefault) {
2627
this.element.prop("value",DPGlobal.formatDate(new Date(), this.format));
2728
}
2829
this.update();
@@ -347,6 +348,7 @@
347348

348349
$(function() {
349350
$("input[data-datepicker-format]").datepicker({
351+
//noDefault: true,
350352
weekStart: 1,
351353
days: ["zo","ma","di","wo","do","vr","za"],
352354
months: ["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]

0 commit comments

Comments
 (0)