@@ -128,7 +128,9 @@ return $.widget( "ui.calendar", {
128
128
_select : function ( event ) {
129
129
var oldValue = this . options . value ? this . options . value . getTime ( ) : "" ;
130
130
131
- this . _setOption ( "value" , new Date ( $ ( event . currentTarget ) . data ( "ui-calendar-timestamp" ) ) ) ;
131
+ this . _setOption (
132
+ "value" , new Date ( $ ( event . currentTarget ) . data ( "ui-calendar-timestamp" ) )
133
+ ) ;
132
134
this . _updateDayElement ( "ui-state-active" ) ;
133
135
134
136
// Allow datepicker to handle focus
@@ -200,7 +202,9 @@ return $.widget( "ui.calendar", {
200
202
} ,
201
203
202
204
_needsRefresh : function ( ) {
203
- if ( this . date . month ( ) !== this . viewDate . month ( ) || this . date . year ( ) !== this . viewDate . year ( ) ) {
205
+ if ( this . date . month ( ) !== this . viewDate . month ( ) ||
206
+ this . date . year ( ) !== this . viewDate . year ( )
207
+ ) {
204
208
205
209
// Check if the needed day is already present in our grid due
206
210
// to eachDay option changes (eg. other-months demo)
@@ -265,7 +269,9 @@ return $.widget( "ui.calendar", {
265
269
this . _buildMultiplePicker ( ) ;
266
270
}
267
271
268
- this . _addClass ( this . element , "ui-calendar" , "ui-widget ui-widget-content ui-helper-clearfix" ) ;
272
+ this . _addClass (
273
+ this . element , "ui-calendar" , "ui-widget ui-widget-content ui-helper-clearfix"
274
+ ) ;
269
275
270
276
this . _refreshHeaderButtons ( ) ;
271
277
this . _createButtonPane ( ) ;
@@ -293,7 +299,8 @@ return $.widget( "ui.calendar", {
293
299
294
300
for ( ; i < months . length ; i ++ ) {
295
301
296
- // TODO: Shouldn't we pass date as a parameter to build* fns instead of setting this.date?
302
+ // TODO: Shouldn't we pass date as a parameter to build* fns
303
+ // instead of setting this.date?
297
304
this . viewDate = months [ i ] ;
298
305
this . gridId = this . id + "-" + i ;
299
306
labelledBy . push ( this . gridId + "-title" ) ;
@@ -408,7 +415,8 @@ return $.widget( "ui.calendar", {
408
415
} ,
409
416
410
417
_buildGridHeaderCell : function ( day ) {
411
- return $ ( "<th role='columnheader' abbr='" + day . fullname + "' aria-label='" + day . fullname + "'>" +
418
+ return $ ( "<th role='columnheader' abbr='" + day . fullname +
419
+ "' aria-label='" + day . fullname + "'>" +
412
420
"<span title='" + day . fullname + "'>" + day . shortname + "</span>" +
413
421
"</th>" ) ;
414
422
} ,
@@ -453,7 +461,9 @@ return $.widget( "ui.calendar", {
453
461
selectable = ( day . selectable && this . _isValid ( dateObject ) ) ;
454
462
455
463
if ( day . render ) {
456
- attributes . push ( "id='" + this . id + "-" + day . year + "-" + day . month + "-" + day . date + "'" ) ;
464
+ attributes . push (
465
+ "id='" + this . id + "-" + day . year + "-" + day . month + "-" + day . date + "'"
466
+ ) ;
457
467
458
468
if ( ! selectable ) {
459
469
attributes . push ( "aria-disabled='true'" ) ;
@@ -496,7 +506,8 @@ return $.widget( "ui.calendar", {
496
506
content = "<button" + attributes + ">" + day . date + "</button>" ;
497
507
498
508
if ( day . today ) {
499
- content += "<span class='ui-helper-hidden-accessible'>, " + this . _getTranslation ( "currentText" ) + "</span>" ;
509
+ content += "<span class='ui-helper-hidden-accessible'>, " +
510
+ this . _getTranslation ( "currentText" ) + "</span>" ;
500
511
}
501
512
502
513
return content ;
@@ -510,7 +521,9 @@ return $.widget( "ui.calendar", {
510
521
this . buttonPane = $ ( "<div>" ) ;
511
522
this . buttonSet = $ ( "<div>" ) . appendTo ( this . buttonPane ) ;
512
523
513
- this . _addClass ( this . buttonPane , "ui-calendar-buttonpane" , "ui-widget-content ui-helper-clearfix" )
524
+ this . _addClass (
525
+ this . buttonPane , "ui-calendar-buttonpane" , "ui-widget-content ui-helper-clearfix"
526
+ )
514
527
. _addClass ( this . buttonSet , "ui-calendar-buttonset" ) ;
515
528
516
529
this . _createButtons ( ) ;
0 commit comments