mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 00:00:49 +00:00
Update TitleInput's getTitle to getMWTitle
cb92c72c63274b332dc81edf473b1b3979ab4bdf in MW core changed this. Bug: T185231 Change-Id: I9084a11bd40e46bddbcd1922ff549703bc90f60f
This commit is contained in:
parent
d5bf4d41de
commit
a52dc16244
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue