dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "auth: Follow up on e907d4328dc3e"
[lhc/web/wiklou.git]
/
resources
/
src
/
mediawiki.widgets.datetime
/
CalendarWidget.js
diff --git
a/resources/src/mediawiki.widgets.datetime/CalendarWidget.js
b/resources/src/mediawiki.widgets.datetime/CalendarWidget.js
index
4c3d8d4
..
3ad6e29
100644
(file)
--- a/
resources/src/mediawiki.widgets.datetime/CalendarWidget.js
+++ b/
resources/src/mediawiki.widgets.datetime/CalendarWidget.js
@@
-40,7
+40,7
@@
}, config );
// Parent constructor
}, config );
// Parent constructor
- mw.widgets.datetime.CalendarWidget
[ 'super' ]
.call( this, config );
+ mw.widgets.datetime.CalendarWidget
.super
.call( this, config );
// Mixin constructors
OO.ui.mixin.TabIndexedElement.call( this, $.extend( {}, config, { $tabIndexed: this.$element } ) );
// Mixin constructors
OO.ui.mixin.TabIndexedElement.call( this, $.extend( {}, config, { $tabIndexed: this.$element } ) );
@@
-216,7
+216,9
@@
if ( dates instanceof Date ) {
dates = [ dates ];
} else if ( Array.isArray( dates ) ) {
if ( dates instanceof Date ) {
dates = [ dates ];
} else if ( Array.isArray( dates ) ) {
- dates = dates.filter( function ( dt ) { return dt instanceof Date; } );
+ dates = dates.filter( function ( dt ) {
+ return dt instanceof Date;
+ } );
dates.sort();
} else {
dates = [];
dates.sort();
} else {
dates = [];
@@
-572,7
+574,7
@@
change = visible !== this.isVisible();
// Parent method
change = visible !== this.isVisible();
// Parent method
- mw.widgets.datetime.CalendarWidget
[ 'super' ]
.prototype.toggle.call( this, visible );
+ mw.widgets.datetime.CalendarWidget
.super
.prototype.toggle.call( this, visible );
if ( change ) {
if ( visible ) {
if ( change ) {
if ( visible ) {