Commit 459dab51 authored by Tim Rogers's avatar Tim Rogers

COS-39 updated reference to click open the initial path

parent 04bb1efe
...@@ -137,7 +137,7 @@ module.exports={ ...@@ -137,7 +137,7 @@ module.exports={
initialPathLoaded = true; initialPathLoaded = true;
//do we need to select a field? //do we need to select a field?
var loadedPath = data.node.key; var loadedPath = data.node.key;
if(loadedPath && loadedPath.length < initialPath.length && loadedPath.indexOf('jcr:content') > -1){ if(loadedPath && loadedPath.length < initialPath.length && loadedPath.indexOf('jcr:content') > -1){
var fieldPath = initialPath.substring(loadedPath.length + 1); var fieldPath = initialPath.substring(loadedPath.length + 1);
if(fieldPath){ if(fieldPath){
...@@ -145,6 +145,8 @@ module.exports={ ...@@ -145,6 +145,8 @@ module.exports={
allRows.filter("[data-name='" + fieldPath + "']").click(); allRows.filter("[data-name='" + fieldPath + "']").click();
})(event, data); })(event, data);
} }
} else if(loadedPath) {
onTreeClickFactory('click')(event, data);
} }
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment