adds some notes

This commit is contained in:
Shannon
2014-10-10 10:49:47 +11:00
parent 0407bec67b
commit 18e0aabdb2
2 changed files with 4 additions and 20 deletions

View File

@@ -188,6 +188,10 @@ angular.module("umbraco").controller("Umbraco.Dialogs.TreePickerController",
$scope.hideSearch = function () {
//TODO: Move this to the treeService, we don't need a reference to the 'tree' the way this is working
// because if we have a single node, that is all we need since we can traverse to the tree root in the treeService.
// this logic needs to be centralized so it can be used in other tree + search areas.
if (tree) {
//we need to ensure that any currently displayed nodes that get selected

View File

@@ -14,26 +14,6 @@
</div>
<div class="umb-panel-body with-footer">
<div class="tab-content umb-control-group" ng-if="searchInfo.showSearch && selectedSearchResults.length > 0">
<div ng-if="searchInfo.showSearch">
<ul class="umb-tree">
<li class="root">
<ul class="umb-search-group">
<li ng-repeat="result in selectedSearchResults">
<div style="padding-left: 20px">
<a ng-class="{first:$first}" ng-click="selectResult(result)">
<i class="icon umb-tree-icon sprTree {{result.icon}}"></i>
{{result.name}}
<small class="search-subtitle" ng-if="result.subTitle">{{result.subTitle}}</small>
</a>
</div>
</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="tab-content umb-control-group">
<umb-tree-search-results