API/tree: do not check parent treenodes if not expizitly selected

This commit is contained in:
Klaus Leithoff 2012-01-09 14:51:40 +00:00
parent 79d4333cec
commit a9a852d78e

View File

@ -1390,7 +1390,7 @@ class html
if ($_onCheckHandler && $_selected) // check selected items on multi selection
{
if (!is_array($_selected)) $_selected = explode(',',$_selected);
if (in_array($path,$_selected,!is_numeric($path))) $entryOptions .= ',CHECKED';
if (array_search("$path",$_selected)!==false) $entryOptions .= ',CHECKED';
//echo "<p>path=$path, _selected=".print_r($_selected,true).": $entryOptions</p>\n";
}
// highlight current item