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 "Apply the pseudo-css selector rules to diff and changelist pages"
[lhc/web/wiklou.git]
/
resources
/
src
/
mediawiki.widgets.datetime
/
DateTimeInputWidget.js
diff --git
a/resources/src/mediawiki.widgets.datetime/DateTimeInputWidget.js
b/resources/src/mediawiki.widgets.datetime/DateTimeInputWidget.js
index
545bf40
..
ffc1818
100644
(file)
--- a/
resources/src/mediawiki.widgets.datetime/DateTimeInputWidget.js
+++ b/
resources/src/mediawiki.widgets.datetime/DateTimeInputWidget.js
@@
-373,7
+373,7
@@
} else {
maxlength = spec.size;
if ( spec.intercalarySize ) {
} else {
maxlength = spec.size;
if ( spec.intercalarySize ) {
- // eslint-disable-next-line jquery/no-each-util
+ // eslint-disable-next-line
no-
jquery/no-each-util
$.each( spec.intercalarySize, reduceFunc );
}
$field = $( '<input>' ).attr( 'type', 'text' )
$.each( spec.intercalarySize, reduceFunc );
}
$field = $( '<input>' ).attr( 'type', 'text' )
@@
-628,7
+628,7
@@
);
}
if ( $field.is( ':input' ) ) {
);
}
if ( $field.is( ':input' ) ) {
- $field.
select(
);
+ $field.
trigger( 'select'
);
}
return false;
}
}
return false;
}
@@
-650,7
+650,7
@@
this.setValue( this.formatter.getDefaultDate() );
}
if ( $field.is( ':input' ) ) {
this.setValue( this.formatter.getDefaultDate() );
}
if ( $field.is( ':input' ) ) {
- $field.
select(
);
+ $field.
trigger( 'select'
);
}
if ( this.calendar ) {
}
if ( this.calendar ) {
@@
-815,7
+815,7
@@
*/
mw.widgets.datetime.DateTimeInputWidget.prototype.focus = function () {
if ( !this.getFocusedField().length ) {
*/
mw.widgets.datetime.DateTimeInputWidget.prototype.focus = function () {
if ( !this.getFocusedField().length ) {
- this.$fields.find( '.mw-widgets-datetime-dateTimeInputWidget-editField' ).first().
focus(
);
+ this.$fields.find( '.mw-widgets-datetime-dateTimeInputWidget-editField' ).first().
trigger( 'focus'
);
}
return this;
};
}
return this;
};