First commit
This commit is contained in:
commit
c6e2478c40
13918 changed files with 2303184 additions and 0 deletions
11
sites/all/modules/civicrm/ang/crmMailingAB/NewCtrl.js
Normal file
11
sites/all/modules/civicrm/ang/crmMailingAB/NewCtrl.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
(function(angular, $, _) {
|
||||
|
||||
angular.module('crmMailingAB').controller('CrmMailingABNewCtrl', function($scope, abtest, $location) {
|
||||
// Transition URL "/abtest/new/foo" => "/abtest/123/foo"
|
||||
var parts = $location.path().split('/'); // e.g. "/mailing/new" or "/mailing/123/wizard"
|
||||
parts[2] = abtest.id;
|
||||
$location.path(parts.join('/'));
|
||||
$location.replace();
|
||||
});
|
||||
|
||||
})(angular, CRM.$, CRM._);
|
Loading…
Add table
Add a link
Reference in a new issue