Search ext: group tab
[civicrm-core.git] / ext / search / ang / searchAdmin / searchList.controller.js
CommitLineData
475029f6
CW
1(function(angular, $, _) {
2 "use strict";
3
4 angular.module('searchAdmin').controller('searchList', function($scope, savedSearches) {
5 var ts = $scope.ts = CRM.ts(),
6 ctrl = $scope.$ctrl = this;
7 this.savedSearches = savedSearches;
8 this.entityTitles = _.transform(CRM.vars.search.schema, function(titles, entity) {
9 titles[entity.name] = entity.titlePlural;
10 }, {});
11 });
12
13})(angular, CRM.$, CRM._);