Esanders has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/228007

Change subject: Use placeholder message in VE
......................................................................

Use placeholder message in VE

Change-Id: I28e3a8e892131da719d447842107ddb54aed537d
---
M resources/mobile.editor.ve/VisualEditorOverlay.js
1 file changed, 6 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/07/228007/1

diff --git a/resources/mobile.editor.ve/VisualEditorOverlay.js 
b/resources/mobile.editor.ve/VisualEditorOverlay.js
index 485594b..40fc6f8 100644
--- a/resources/mobile.editor.ve/VisualEditorOverlay.js
+++ b/resources/mobile.editor.ve/VisualEditorOverlay.js
@@ -37,7 +37,6 @@
                },
                /** @inheritdoc **/
                initialize: function ( options ) {
-                       var self = this;
                        this.applyHeaderOptions( options, true );
                        options.previewingMsg = mw.msg( 
'mobile-frontend-page-edit-summary', options.title );
                        options.editingMsg = mw.msg( 
'mobile-frontend-editor-editing' );
@@ -46,7 +45,8 @@
                        this.config = $.extend( this.config, {
                                skipPreview: false
                        } );
-                       this.$continueBtn = self.$( '.continue' ).prop( 
'disabled', true );
+                       this.$continueBtn = this.$( '.continue' ).prop( 
'disabled', true );
+                       this.isNewPage = options.isNewPage;
                },
                /**
                 * Destroy the existing VisualEditor target.
@@ -234,6 +234,10 @@
 
                        this.clearSpinner();
 
+                       if ( this.isNewPage ) {
+                               surface.setPlaceholder( mw.msg( 
'mobile-frontend-editor-placeholder-new-page', mw.user ) );
+                       }
+
                        this.$( '.surface' )
                                .append( surface.$element.addClass( 'content' ) 
)
                                .show();

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I28e3a8e892131da719d447842107ddb54aed537d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>

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

Reply via email to