r2885 - renderTagCheckbox(): wrap tag checkbox and its name with LABEL (suggested...
authorDenis Ovsienko <infrastation@yandex.ru>
Sat, 20 Jun 2009 10:13:50 +0000 (10:13 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Sat, 20 Jun 2009 10:13:50 +0000 (10:13 +0000)
inc/interface.php

index a2626c9432035e73bf573aa66597fd18e563aee8..34c3b67e4c520be51073bffe562a5b2ae0bce50c 100644 (file)
@@ -4824,11 +4824,11 @@ function renderTagCheckbox ($inputname, $preselect, $taginfo, $refcnt_realm = ''
                $class = 'tagbox';
        }
        echo "<tr><td colspan=2 class=${class} style='padding-left: " . ($level * 16) . "px;'>";
-       echo "<input type=checkbox name='${inputname}[]' value='${taginfo['id']}'${selected}> ";
+       echo "<label><input type=checkbox name='${inputname}[]' value='${taginfo['id']}'${selected}> ";
        echo $taginfo['tag'];
        if (strlen ($refcnt_realm) and isset ($taginfo['refcnt'][$refcnt_realm]))
                echo ' <i>(' . $taginfo['refcnt'][$refcnt_realm] . ')</i>';
-       echo "</td></tr>\n";
+       echo "</label></td></tr>\n";
        foreach ($taginfo['kids'] as $kid)
                $self ($inputname, $preselect, $kid, $refcnt_realm, $level + 1);
 }