Change query() to children() - expose hassuborinates

This commit is contained in:
Deon George
2020-09-14 21:08:55 +10:00
parent 1ebdffa358
commit c549d28340
4 changed files with 13 additions and 11 deletions

6
public/js/custom.js vendored
View File

@@ -47,7 +47,7 @@ $(document).ready(function() {
source: sources,
lazyLoad: function(event,data) {
data.result = {
url: "api/query",
url: 'api/children',
data: {key: data.node.data.item,depth: 1}
};
@@ -55,8 +55,8 @@ $(document).ready(function() {
},
keydown: function(event, data){
switch( $.ui.fancytree.eventToString(data.originalEvent) ) {
case "return":
case "space":
case 'return':
case 'space':
data.node.toggleExpanded();
break;
}