Update TitleInput's getTitle to getMWTitle

cb92c72c63274b332dc81edf473b1b3979ab4bdf in MW core changed this.

Bug: T185231
Change-Id: I9084a11bd40e46bddbcd1922ff549703bc90f60f
This commit is contained in:
David Lynch 2018-01-18 11:39:23 -06:00
parent d5bf4d41de
commit a52dc16244

View file

@ -109,7 +109,7 @@ ve.ui.MWTemplatePlaceholderPage.prototype.onAddTemplate = function () {
if ( menu.isVisible() ) {
menu.chooseItem( menu.findSelectedItem() );
}
name = this.addTemplateInput.getTitle();
name = this.addTemplateInput.getMWTitle();
if ( !name ) {
// Invalid titles return null, so abort here.
return;
@ -124,7 +124,7 @@ ve.ui.MWTemplatePlaceholderPage.prototype.onAddTemplate = function () {
};
ve.ui.MWTemplatePlaceholderPage.prototype.onTemplateInputChange = function () {
this.addTemplateButton.setDisabled( this.addTemplateInput.getTitle() === null );
this.addTemplateButton.setDisabled( this.addTemplateInput.getMWTitle() === null );
};
ve.ui.MWTemplatePlaceholderPage.prototype.onRemoveButtonClick = function () {