mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Fix typos
Change-Id: Iaa7bf09877f32f7c19217103773657a8d8a81d16
This commit is contained in:
parent
e422826a33
commit
6cfa2e7dd0
|
@ -146,7 +146,7 @@ OO.inheritClass( ve.ui.MWParameterPage, OO.ui.PageLayout );
|
|||
/* Events */
|
||||
|
||||
/**
|
||||
* Triggered the parameter value changes between empty and not empty.
|
||||
* Triggered when the parameter value changes between empty and not empty.
|
||||
*
|
||||
* @event hasValueChange
|
||||
* @param string parameterId Keyed by unique id of the parameter, e.g. something
|
||||
|
|
|
@ -235,7 +235,7 @@ ve.ui.MWSettingsPage.prototype.checkValidRedirect = function () {
|
|||
* my idea is to in the parse method instead of a boolean return a string with an error message (not an error code since the error string can have parameters),
|
||||
* then in Title.newFromText instead of returning null, return the error string. Use that string there in setErrors.
|
||||
* Problem: some methods might depend on it returning null.
|
||||
* Solution: either make it a new metohd (Title.newFromTextThrow), or add a an optional parameter to return the error message.
|
||||
* Solution: either make it a new method (Title.newFromTextThrow), or add a an optional parameter to return the error message.
|
||||
*/
|
||||
this.redirectTargetField.setErrors( [ mw.msg( 'visualeditor-title-error' ) ] );
|
||||
return false;
|
||||
|
|
|
@ -65,7 +65,7 @@ ve.ui.MWEditSummaryWidget.static.splitSummary = function ( summary ) {
|
|||
};
|
||||
|
||||
/**
|
||||
* Filter a list of edit summaries to a specific query stirng
|
||||
* Filter a list of edit summaries to a specific query string
|
||||
*
|
||||
* @param {string[]} summaries Edit summaries
|
||||
* @param {string} query User query
|
||||
|
|
|
@ -169,7 +169,7 @@ ve.ui.MWTemplateTitleInputWidget.prototype.getLookupRequest = function () {
|
|||
var page = pages[ i ];
|
||||
|
||||
if ( page.missing ) {
|
||||
// Remmeber templates that don't exist in the link cache
|
||||
// Remember templates that don't exist in the link cache
|
||||
// { title: { missing: true|false }
|
||||
var missingTitle = {};
|
||||
missingTitle[ page.title ] = { missing: true };
|
||||
|
|
Loading…
Reference in a new issue