dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f311f96
)
Apply csshelpclass to vform help
author
Bryan Davis
<bd808@wikimedia.org>
Sat, 23 Aug 2014 22:10:17 +0000
(16:10 -0600)
committer
Bryan Davis
<bd808@wikimedia.org>
Sat, 23 Aug 2014 22:10:17 +0000
(16:10 -0600)
Ensure that a form field which sets 'csshelpclass' and is rendered as
a vform receives expected styling.
Change-Id: Ibe082e07fe846334bd4dc257c9c0df8db23a1957
includes/htmlform/HTMLFormField.php
patch
|
blob
|
history
diff --git
a/includes/htmlform/HTMLFormField.php
b/includes/htmlform/HTMLFormField.php
index
7e4b15b
..
70b1535
100644
(file)
--- a/
includes/htmlform/HTMLFormField.php
+++ b/
includes/htmlform/HTMLFormField.php
@@
-593,6
+593,9
@@
abstract class HTMLFormField {
$wrapperAttributes = array(
'class' => 'htmlform-tip',
);
+ if ( $this->mHelpClass !== false ) {
+ $wrapperAttributes['class'] .= " {$this->mHelpClass}";
+ }
if ( $this->mHideIf ) {
$wrapperAttributes['data-hide-if'] = FormatJson::encode( $this->mHideIf );
$wrapperAttributes['class'] .= ' mw-htmlform-hide-if';