hide search list on selection
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user