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

This commit is contained in:
Klaus Leithoff 2012-01-09 14:51:50 +00:00
parent 35f1ed9041
commit c6f6ee3b1e

View File

@ -1334,7 +1334,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