[Search] Remove unnecsissary controller

Removed the SearchItemController, as the logic was simple
enough to be done in one line in the search item
representation html.
This commit is contained in:
slhale
2015-08-18 10:19:20 -07:00
parent 3a932f5443
commit 17aa666519
5 changed files with 8 additions and 148 deletions

View File

@@ -20,13 +20,11 @@
at runtime from the About dialog for additional information.
-->
<span ng-controller="SearchItemController as controller">
<div class="search-result-item"
ng-class="{selected: controller.isSelected()}">
<mct-representation key="'label'"
mct-object="domainObject"
ng-model="ngModel"
ng-click="ngModel.selectedObject = domainObject">
</mct-representation>
</div>
</span>
<div class="search-result-item"
ng-class="{selected: ngModel.selectedObject.getId() === domainObject.getId()}">
<mct-representation key="'label'"
mct-object="domainObject"
ng-model="ngModel"
ng-click="ngModel.selectedObject = domainObject">
</mct-representation>
</div>