hide search list on selection

This commit is contained in:
perploug
2013-11-05 12:38:45 +01:00
parent f30416d20f
commit d2ae358a3d
2 changed files with 7 additions and 1 deletions

View File

@@ -65,6 +65,12 @@ function NavigationController($scope,$rootScope, $location, $log, $routeParams,
navigationService.showMenu(ev, args);
};
//todo, migrate to nav service
$scope.searchHide = function () {
navigationService.hideSearch();
};
/** Opens a dialog but passes in this scope instance to be used for the dialog */
$scope.openDialog = function (currentNode, action, currentSection) {
navigationService.showDialog({

View File

@@ -40,7 +40,7 @@
<ul class="umb-search-group" ng-repeat="resultGroup in searchResults">
<li ng-repeat="result in resultGroup.results">
<div>
<a ng-class="{'first':$first}" ng-href="#/{{result.editorPath}}">
<a ng-class="{'first':$first}" ng-click="searchHide()" ng-href="#/{{result.editorPath}}">
<i class="icon umb-tree-icon sprTree {{result.icon}}"></i>
{{result.name}}