Replacing deprecated `constructive` mediawiki.UI CSS class and OOjs UI flag with `progressive`. Bug: T146923 Change-Id: I524b9722ee49692c55bb1f97d34d8a28068716ee
19 lines
460 B
PHP
19 lines
460 B
PHP
<?php
|
|
|
|
/**
|
|
* Add a submit button inline in the form (as opposed to
|
|
* HTMLForm::addButton(), which will add it at the end).
|
|
*/
|
|
class HTMLSubmitField extends HTMLButtonField {
|
|
protected $buttonType = 'submit';
|
|
|
|
protected $mFlags = [ 'primary', 'progressive' ];
|
|
|
|
public function skipLoadData( $request ) {
|
|
return !$request->getCheck( $this->mName );
|
|
}
|
|
|
|
public function loadDataFromRequest( $request ) {
|
|
return $request->getCheck( $this->mName );
|
|
}
|
|
}
|