File tree Expand file tree Collapse file tree 1 file changed +23
-13
lines changed Expand file tree Collapse file tree 1 file changed +23
-13
lines changed Original file line number Diff line number Diff line change @@ -319,6 +319,10 @@ <h2>bootstrap-datepicker sandbox <small>αlphα</small></h2>
319
319
< input id ="beforeShowDay " name ="beforeShowDay " type ="checkbox ">
320
320
Before-show-day callback
321
321
</ label >
322
+ < label for ="beforeShowMonth " class ="inline checkbox ">
323
+ < input id ="beforeShowMonth " name ="beforeShowMonth " type ="checkbox ">
324
+ Before-show-month callback
325
+ </ label >
322
326
323
327
< br > </ br >
324
328
@@ -375,19 +379,25 @@ <h2>bootstrap-datepicker sandbox <small>αlphα</small></h2>
375
379
val = values [ opt ] ;
376
380
if ( opt == 'daysOfWeekDisabled' ) val = '"' + val + '"'
377
381
else if ( opt == 'beforeShowDay' ) val = function ( date ) {
378
- if ( date . getMonth ( ) == ( new Date ( ) ) . getMonth ( ) )
379
- switch ( date . getDate ( ) ) {
380
- case 4 :
381
- return {
382
- tooltip : 'Example tooltip' ,
383
- classes : 'active'
384
- } ;
385
- case 8 :
386
- return false ;
387
- case 12 :
388
- return "green" ;
389
- }
390
- }
382
+ if ( date . getMonth ( ) == ( new Date ( ) ) . getMonth ( ) )
383
+ switch ( date . getDate ( ) ) {
384
+ case 4 :
385
+ return {
386
+ tooltip : 'Example tooltip' ,
387
+ classes : 'active'
388
+ } ;
389
+ case 8 :
390
+ return false ;
391
+ case 12 :
392
+ return "green" ;
393
+ }
394
+ }
395
+ else if ( opt == 'beforeShowMonth' ) val = function ( date ) {
396
+ switch ( date . getMonth ( ) ) {
397
+ case 8 :
398
+ return false ;
399
+ }
400
+ }
391
401
else if ( val == 'on' || val == 'true' ) val = 'true' ;
392
402
else if ( val === void 0 || val == 'false' ) val = 'false' ;
393
403
else if ( parseInt ( val ) == val ) val = val ;
You can’t perform that action at this time.
0 commit comments