jenkins-bot has submitted this change and it was merged.

Change subject: Replacing $input in save dialog
......................................................................


Replacing $input in save dialog

Bug: 56647
Change-Id: I4703d0625767efd1b15bbc00848c77b322b43e53
---
M modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Catrope: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js 
b/modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js
index d02c831..13e72c4 100644
--- a/modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js
+++ b/modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js
@@ -157,7 +157,7 @@
                        this.actions.setMode( 'save' );
                        // HACK: FF needs *another* defer
                        setTimeout( function () {
-                               var $textarea = dialog.editSummaryInput.$input;
+                               var $textarea = 
dialog.editSummaryInput.getValue();
                                $textarea[0].focus();
                                // If message has be pre-filled (e.g. section 
edit), move cursor to end
                                if ( $textarea.val() !== '' ) {
@@ -276,7 +276,7 @@
  */
 ve.ui.MWSaveDialog.prototype.reset = function () {
        // Reset summary input
-       this.editSummaryInput.$input.val( '' );
+       this.editSummaryInput.setValue( '' );
        // Uncheck minoredit
        this.$saveOptions.find( '.ve-ui-mwSaveDialog-checkboxes' )
                .find( '#wpMinoredit' ).prop( 'checked', false );

-- 
To view, visit https://gerrit.wikimedia.org/r/165597
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I4703d0625767efd1b15bbc00848c77b322b43e53
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: SuchetaG <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to