mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
pass sort order to ajax subtree command
This commit is contained in:
parent
aa399e50bb
commit
9032170149
|
@ -1016,7 +1016,7 @@ function clearFilename<?php print $formName ?>() {
|
|||
$children[] = $node2;
|
||||
}
|
||||
}
|
||||
$node['children'] = jqtree($path, $subfolder, $user, $accessmode, $showdocs, $expandtree);
|
||||
$node['children'] = jqtree($path, $subfolder, $user, $accessmode, $showdocs, $expandtree, $orderby);
|
||||
}
|
||||
$children[] = $node;
|
||||
}
|
||||
|
@ -1052,7 +1052,7 @@ function clearFilename<?php print $formName ?>() {
|
|||
$tree = array(array('label'=>$root->getName(), 'id'=>$root->getID(), 'load_on_demand'=>true, 'is_folder'=>true));
|
||||
}
|
||||
|
||||
echo "<div id=\"jqtree".$formid."\" style=\"margin-left: 10px;\" data-url=\"../op/op.Ajax.php?command=subtree&showdocs=".$showdocs."\"></div>\n";
|
||||
echo "<div id=\"jqtree".$formid."\" style=\"margin-left: 10px;\" data-url=\"../op/op.Ajax.php?command=subtree&showdocs=".$showdocs."&orderby=".$orderby."\"></div>\n";
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
var data = <?php echo json_encode($tree); ?>;
|
||||
|
|
Loading…
Reference in New Issue
Block a user