File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -327,6 +327,14 @@ <h2>bootstrap-datepicker sandbox <small>αlphα</small></h2>
327
327
< input id ="datesDisabled " name ="datesDisabled " type ="checkbox ">
328
328
datesDisabled
329
329
</ label >
330
+ < label for ="toggleActive " class ="inline checkbox ">
331
+ < input id ="toggleActive " name ="toggleActive " type ="checkbox ">
332
+ Toggle Active
333
+ </ label >
334
+ < label for ="defaultViewDate " class ="inline checkbox ">
335
+ < input id ="defaultViewDate " name ="defaultViewDate " type ="checkbox ">
336
+ DefaultViewDate option
337
+ </ label >
330
338
331
339
< br > </ br >
332
340
@@ -379,6 +387,7 @@ <h2>bootstrap-datepicker sandbox <small>αlphα</small></h2>
379
387
var js = "$('#sandbox-container " + selector + "').datepicker({\n" ,
380
388
val ;
381
389
for ( var opt in $ . extend ( { } , defaults , values ) ) {
390
+ console . log ( opt ) ;
382
391
if ( values [ opt ] != defaults [ opt ] ) {
383
392
val = values [ opt ] ;
384
393
if ( opt == 'daysOfWeekDisabled' ) val = '"' + val + '"'
@@ -410,6 +419,7 @@ <h2>bootstrap-datepicker sandbox <small>αlphα</small></h2>
410
419
}
411
420
val = "['" + month + "/06/" + date . getFullYear ( ) + "', '" + month + "/21/" + date . getFullYear ( ) + "']" ;
412
421
}
422
+ else if ( opt === 'defaultViewDate' ) val = '{ year: 1977, month: 04, day: 25 }' ;
413
423
else if ( val == 'on' || val == 'true' ) val = 'true' ;
414
424
else if ( val === void 0 || val == 'false' ) val = 'false' ;
415
425
else if ( parseInt ( val ) == val ) val = val ;
You can’t perform that action at this time.
0 commit comments