1 (function(angular
, $, _
) {
4 angular
.module('search').controller('crmSearchActionDelete', function($scope
, crmApi4
, dialogService
, searchMeta
) {
5 var ts
= $scope
.ts
= CRM
.ts(),
7 ctrl
= $scope
.$ctrl
= this;
9 this.entity
= searchMeta
.getEntity(model
.entity
);
11 this.cancel = function() {
12 dialogService
.cancel('crmSearchAction');
15 this.delete = function() {
16 crmApi4(model
.entity
, 'Delete', {
17 where
: [['id', 'IN', model
.ids
]],
19 dialogService
.close('crmSearchAction');
24 })(angular
, CRM
.$, CRM
._
);