' +
//NOTE: This ins element is used to display the search icon if the node is a container/listview and the tree is currently in dialog
- '
' +
+ '
' +
'
' +
'
' +
//NOTE: If the tree supports check boxes, render different markup
diff --git a/src/Umbraco.Web.UI.Client/src/less/tree.less b/src/Umbraco.Web.UI.Client/src/less/tree.less
index 4217832121..1fe06b0dc4 100644
--- a/src/Umbraco.Web.UI.Client/src/less/tree.less
+++ b/src/Umbraco.Web.UI.Client/src/less/tree.less
@@ -145,9 +145,11 @@
padding-left: 35px;
}
-.umb-tree .umb-tree-node-search {
- cursor:pointer;
- /*color:@turquoise;*/
+.umb-tree.umb-tree-node-search > div > div {
+ padding-left:20px;
+}
+.umb-tree.umb-tree-node-search ins:first-child {
+ visibility:visible;
}
a.umb-options {
diff --git a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/treepicker.controller.js b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/treepicker.controller.js
index 9bc07d2c1f..8b54aa0d40 100644
--- a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/treepicker.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/treepicker.controller.js
@@ -66,7 +66,16 @@ angular.module("umbraco").controller("Umbraco.Dialogs.TreePickerController",
}
function nodeSearchHandler(ev, args) {
- if (args.node.metaData.isContainer === true) {
+ if (args.node.metaData.isContainer === true) {
+
+ //extract the html required to populate the contextual header
+ var treeNodeDiv = $(args.event.target.parentElement.parentElement).find("div").first();
+
+ var newDiv = treeNodeDiv.clone().wrap('
').parent();
+ newDiv.find("ins:first").removeClass("icon-navigation-right").addClass("icon-navigation-down");
+
+ $scope.searchInfo.searchFromHtml = newDiv.html(); //outerHtml
+
$scope.searchInfo.showSearch = true;
$scope.searchInfo.searchFromName = args.node.name;
$scope.searchInfo.searchFrom = args.node.id;
diff --git a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/treepicker.html b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/treepicker.html
index 88273cad01..d8577bf667 100644
--- a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/treepicker.html
+++ b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/treepicker.html
@@ -1,7 +1,12 @@