mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +00:00
MWSaveDialog: Use .moveCursorToEnd() instead of ve.selectEnd()
ve.selectEnd() removed by I44f43f312c78 in VE core. Depends on Ia63e6c6a0 in OOjs UI. Change-Id: Ic7ed8a24abd8288d68cf89839a553a569081e8c7
This commit is contained in:
parent
ac4a615679
commit
6eee029159
|
@ -174,8 +174,7 @@ ve.ui.MWSaveDialog.prototype.swapPanel = function ( panel ) {
|
|||
this.actions.setMode( 'save' );
|
||||
// HACK: FF needs *another* defer
|
||||
setTimeout( function () {
|
||||
// FIXME we need to add features to OO.ui.TextInputWidget so we don't need to access .$input
|
||||
ve.selectEnd( dialog.editSummaryInput.$input[ 0 ] );
|
||||
dialog.editSummaryInput.moveCursorToEnd();
|
||||
} );
|
||||
break;
|
||||
case 'conflict':
|
||||
|
|
Loading…
Reference in a new issue