/usr/share/civicrm/ang/crmMailingAB.js is in civicrm-common 4.7.30+dfsg-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | (function(angular, $, _) {
angular.module('crmMailingAB', CRM.angRequires('crmMailingAB'));
angular.module('crmMailingAB').config([
'$routeProvider',
function($routeProvider) {
$routeProvider.when('/abtest', {
templateUrl: '~/crmMailingAB/ListCtrl.html',
controller: 'CrmMailingABListCtrl',
resolve: {
mailingABList: function($route, crmApi) {
return crmApi('MailingAB', 'get', {rowCount: 0});
},
fields: function(crmMetadata) {
return crmMetadata.getFields('MailingAB');
}
}
});
$routeProvider.when('/abtest/new', {
template: '<p>' + ts('Initializing...') + '</p>',
controller: 'CrmMailingABNewCtrl',
resolve: {
abtest: function($route, CrmMailingAB) {
var abtest = new CrmMailingAB(null);
return abtest.load().then(function() {
return abtest.save();
});
}
}
});
$routeProvider.when('/abtest/:id', {
templateUrl: '~/crmMailingAB/EditCtrl/main.html',
controller: 'CrmMailingABEditCtrl',
resolve: {
abtest: function($route, CrmMailingAB) {
var abtest = new CrmMailingAB($route.current.params.id == 'new' ? null : $route.current.params.id);
return abtest.load();
}
}
});
}
]);
})(angular, CRM.$, CRM._);
|