/*!
- * OOUI v0.30.2
+ * OOUI v0.30.3
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 2011–2019 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2019-01-23T01:14:20Z
+ * Date: 2019-02-21T10:57:07Z
*/
( function ( OO ) {
) {
$focused = previousPage.$element.find( ':focus' );
if ( $focused.length ) {
- // eslint-disable-next-line jquery/no-event-shorthand
$focused[ 0 ].blur();
}
}
// blurred when it was hidden, but browsers are not very consistent about this.
$focused = previousPage.$element.find( ':focus' );
if ( $focused.length ) {
- // eslint-disable-next-line jquery/no-event-shorthand
$focused[ 0 ].blur();
}
}
) {
$focused = previousTabPanel.$element.find( ':focus' );
if ( $focused.length ) {
- // eslint-disable-next-line jquery/no-event-shorthand
$focused[ 0 ].blur();
}
}
// blurred when it was hidden, but browsers are not very consistent about this.
$focused = previousTabPanel.$element.find( ':focus' );
if ( $focused.length ) {
- // eslint-disable-next-line jquery/no-event-shorthand
$focused[ 0 ].blur();
}
}
// If Ctrl/Cmd was pressed, delete item entirely.
// Otherwise put it into the text field for editing.
if ( !withMetaKey ) {
- this.input.setValue( item.getData() );
+ this.input.setValue( item.getLabel() );
}
}
if ( this.isSupported && !this.isDisabled() && this.$input &&
( e.which === OO.ui.Keys.SPACE || e.which === OO.ui.Keys.ENTER )
) {
- this.$input.click();
+ this.$input.trigger( 'click' );
return false;
}
};
*/
OO.ui.SelectFileWidget.prototype.onDropTargetClick = function () {
if ( this.isSupported && !this.isDisabled() && this.$input ) {
- this.$input.click();
+ this.$input.trigger( 'click' );
return false;
}
};