1 (function(angular
, $, _
) {
4 angular
.module('crmSearchActions').controller('crmSearchActionDelete', function($scope
, crmApi4
, dialogService
) {
5 var ts
= $scope
.ts
= CRM
.ts(),
7 ctrl
= $scope
.$ctrl
= this;
9 this.entityTitle
= model
.ids
.length
=== 1 ? model
.entityInfo
.title
: model
.entityInfo
.title_plural
;
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
._
);