add labels to make checkboxes better clickable
[squirrelmail.git] / plugins / squirrelspell / modules / edit_dic.mod
index 8e60ff7d667cb98fcd52b76a1f47eb32701f7072..238ad7b7ecd9649ed98168645a6ab00dcc09b3dd 100644 (file)
@@ -61,8 +61,9 @@ foreach ($langs as $lang) {
         $msg .= "</td><td valign=\"top\">\n";
       }
       $msg .= "<input type=\"checkbox\" name=\"words_ary[]\" "
-        . 'value="'.htmlspecialchars($lang_words[$j]). '" /> '
-        . htmlspecialchars($lang_words[$j]) . "<br />\n";
+        . 'value="'.htmlspecialchars($lang_words[$j]). '" id="words_ary_'
+        . $j . '" /> <label for="words_ary_' . $j .'">'
+        . htmlspecialchars($lang_words[$j]) . "</label><br />\n";
     }
     $msg .= '</td></tr></table></td></tr>'
       . "<tr bgcolor=\"$color[0]\" align=\"center\"><td>"