Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nasa/openmct.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Richards <peter.l.richards@nasa.gov>2017-02-23 00:08:54 +0300
committerPete Richards <peter.l.richards@nasa.gov>2017-02-23 00:08:54 +0300
commitd45ae7908dbd040d1585bb972a097ae085334fb6 (patch)
tree385898c3520b8a86dc1c220f1c01417fa30cdd65
parentc74fdb816fb94c6fbe164350e39db297b89034ae (diff)
[Search] Allow navigation from resultsrestore-search-navigation
Fix search item so that navigation occurs after clicking on a search result, while still properly preventing navigation when required. Related to #1366
-rw-r--r--platform/search/res/templates/search-item.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/search/res/templates/search-item.html b/platform/search/res/templates/search-item.html
index 701dc9d22..33a3c1385 100644
--- a/platform/search/res/templates/search-item.html
+++ b/platform/search/res/templates/search-item.html
@@ -18,14 +18,14 @@
licenses. See the Open Source Licenses file (LICENSES.md) included with
this source code distribution or the Licensing information page available
at runtime from the About dialog for additional information.
--->
+-->
<div class="search-result-item l-flex-row flex-elem grows"
ng-class="{selected: ngModel.selectedObject.getId() === domainObject.getId()}">
<mct-representation key="'label'"
mct-object="domainObject"
ng-model="ngModel"
- ng-click="ngModel.selectedObject = domainObject"
+ ng-click="ngModel.allowSelection(domainObject) && ngModel.onSelection(domainObject)"
class="l-flex-row flex-elem grows">
</mct-representation>
-</div> \ No newline at end of file
+</div>