mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/InputBox
synced 2024-11-15 03:04:52 +00:00
Apply patch from Bug 29580 - “allow placeholder for inputbox” from Grunny
This commit is contained in:
parent
889357ef56
commit
6b49e7d6d8
Notes:
Mark A. Hershberger
2011-10-26 20:31:20 +00:00
|
@ -22,6 +22,7 @@ class InputBox {
|
|||
private $mPage = '';
|
||||
private $mBR = 'yes';
|
||||
private $mDefaultText = '';
|
||||
private $mPlaceholderText = '';
|
||||
private $mBGColor = 'transparent';
|
||||
private $mButtonLabel = '';
|
||||
private $mSearchButtonLabel = '';
|
||||
|
@ -103,6 +104,7 @@ class InputBox {
|
|||
'name' => 'search',
|
||||
'type' => $this->mHidden ? 'hidden' : 'text',
|
||||
'value' => $this->mDefaultText,
|
||||
'placeholder' => $this->mPlaceholderText,
|
||||
'size' => $this->mWidth,
|
||||
)
|
||||
);
|
||||
|
@ -391,6 +393,7 @@ class InputBox {
|
|||
'name' => 'title',
|
||||
'class' => 'createboxInput',
|
||||
'value' => $this->mDefaultText,
|
||||
'placeholder' => $this->mPlaceholderText,
|
||||
'size' => $this->mWidth
|
||||
)
|
||||
);
|
||||
|
@ -463,6 +466,7 @@ class InputBox {
|
|||
'name' => 'preloadtitle',
|
||||
'class' => 'commentboxInput',
|
||||
'value' => $this->mDefaultText,
|
||||
'placeholder' => $this->mPlaceholderText,
|
||||
'size' => $this->mWidth
|
||||
)
|
||||
);
|
||||
|
@ -525,6 +529,7 @@ class InputBox {
|
|||
'minor' => 'mMinor',
|
||||
'break' => 'mBR',
|
||||
'default' => 'mDefaultText',
|
||||
'placeholder' => 'mPlaceholderText',
|
||||
'bgcolor' => 'mBGColor',
|
||||
'buttonlabel' => 'mButtonLabel',
|
||||
'searchbuttonlabel' => 'mSearchButtonLabel',
|
||||
|
|
Loading…
Reference in a new issue