Remove mentions of mw.htmlform.Checker
mw.htmlform.Checker was removed in 743edb1
and no longer exists
Change-Id: Id269f63fd3ca64a719745868d6df907548c15fad
This commit is contained in:
parent
5123b83871
commit
78b8a56114
3 changed files with 3 additions and 7 deletions
|
|
@ -1160,9 +1160,6 @@ abstract class HTMLFormField {
|
|||
* @since 1.18
|
||||
*/
|
||||
protected static function formatErrors( $errors ) {
|
||||
// Note: If you change the logic in this method, change
|
||||
// htmlform.Checker.js to match.
|
||||
|
||||
if ( is_array( $errors ) && count( $errors ) === 1 ) {
|
||||
$errors = array_shift( $errors );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
( function () {
|
||||
|
||||
// FIXME: mw.htmlform.Checker also sets this to empty object
|
||||
mw.htmlform = {};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
* A helper class to add validation to non-OOUI HtmlForm fields.
|
||||
*
|
||||
* @private
|
||||
* @class mw.htmlform.Checker
|
||||
* @class HtmlformChecker
|
||||
*
|
||||
* @constructor
|
||||
* @param {jQuery} $element Form field generated by HTMLForm
|
||||
|
|
@ -32,7 +32,7 @@ function HtmlformChecker( $element, validator ) {
|
|||
*
|
||||
* @param {jQuery} [$extraElements] Additional elements to listen for change
|
||||
* events on.
|
||||
* @return {mw.htmlform.Checker}
|
||||
* @return {HtmlformChecker}
|
||||
* @chainable
|
||||
*/
|
||||
HtmlformChecker.prototype.attach = function ( $extraElements ) {
|
||||
|
|
@ -102,7 +102,7 @@ HtmlformChecker.prototype.validate = function () {
|
|||
* `<div>` or `<li>`, as with jQuery.append().
|
||||
* @param {boolean} [forceReplacement] Set true to force a visual replacement even
|
||||
* if the errors are the same. Ignored if errors are empty.
|
||||
* @return {mw.htmlform.Checker}
|
||||
* @return {HtmlformChecker}
|
||||
* @chainable
|
||||
*/
|
||||
HtmlformChecker.prototype.setErrors = function ( valid, errors, forceReplacement ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue