fixed box selection in list view

This commit is contained in:
Roland Gruber 2011-05-07 12:03:55 +00:00
parent e2300c7047
commit f2f52cc9c8
2 changed files with 2 additions and 2 deletions

View File

@ -385,7 +385,7 @@ class lamList {
" onMouseOut=\"list_out(this)\"\n" .
" onClick=\"list_click('" . $rowID . "')\"\n" .
" onDblClick=\"top.location.href='../account/edit.php?type=" . $this->type . "&DN=" . rawurlencode($info[$i]['dn']) . "'\">\n");
echo " <td align=\"center\"><input class=\"accountBoxUnchecked\" onClick=\"list_click(this, '" . $rowID . "', '" . $this->type . "')\"" .
echo " <td align=\"center\"><input class=\"accountBoxUnchecked\" onClick=\"list_click('" . $rowID . "')\"" .
" type=\"checkbox\" name=\"" . $rowID . "\"></td>\n";
$this->listPrintToolLinks($info[$i], $rowID);
for ($k = 0; $k < sizeof($this->attrArray); $k++) {

View File

@ -45,7 +45,7 @@ function list_out(list) {
* @param box checkbox name
*/
function list_click(box) {
cbox = document.getElementsByName(box)[0];
var cbox = document.getElementsByName(box)[0];
if (cbox.checked == true) {
cbox.checked = false;
}