|
From: <var...@us...> - 2019-05-02 16:21:51
|
Revision: 10126
http://sourceforge.net/p/phpwiki/code/10126
Author: vargenau
Date: 2019-05-02 16:21:49 +0000 (Thu, 02 May 2019)
Log Message:
-----------
Add <label>
Modified Paths:
--------------
trunk/lib/plugin/WikiPoll.php
Modified: trunk/lib/plugin/WikiPoll.php
===================================================================
--- trunk/lib/plugin/WikiPoll.php 2019-04-26 14:54:02 UTC (rev 10125)
+++ trunk/lib/plugin/WikiPoll.php 2019-05-02 16:21:49 UTC (rev 10126)
@@ -212,8 +212,10 @@
$row->pushContent(HTML::div(
HTML::input(array('type' => 'radio',
'name' => "answer[$i]",
- 'value' => $j)),
- HTML::raw(" "), $a[$j]));
+ 'value' => $j,
+ 'id' => "answer[$i]-$j")),
+ HTML::raw(" "),
+ HTML::label(array('for' => "answer[$i]-$j"), $a[$j])));
}
$html->pushContent(HTML::p(HTML::strong($q)), $row);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|