blob: edcfa70519dca5b7cfb420b748257bf2b7045633 (
plain)
1
2
3
4
5
6
7
8
9
10
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._);
|