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:
8b7f9c3
)
Fix ids for multi-select types
author
Andrew Garrett
<werdna@users.mediawiki.org>
Fri, 24 Apr 2009 11:11:44 +0000
(11:11 +0000)
committer
Andrew Garrett
<werdna@users.mediawiki.org>
Fri, 24 Apr 2009 11:11:44 +0000
(11:11 +0000)
includes/HTMLForm.php
patch
|
blob
|
history
diff --git
a/includes/HTMLForm.php
b/includes/HTMLForm.php
index
0db6980
..
f77ff4c
100644
(file)
--- a/
includes/HTMLForm.php
+++ b/
includes/HTMLForm.php
@@
-664,8
+664,8
@@
class HTMLMultiSelectField extends HTMLFormField {
$html .= $this->formatOptions( $info, $value );
} else {
$checkbox = Xml::check( $this->mName.'[]', in_array( $info, $value ),
- array( 'id' => $this->mID, 'value' => $info ) );
- $checkbox .= ' ' . Xml::tags( 'label', array( 'for' => $this->mID ), $label );
+ array( 'id' => $this->mID
."-$info"
, 'value' => $info ) );
+ $checkbox .= ' ' . Xml::tags( 'label', array( 'for' => $this->mID
."-$info"
), $label );
$html .= Xml::tags( 'p', null, $checkbox );
}