From 00d19946710950398c8bc1ce04c0d3d03319069e Mon Sep 17 00:00:00 2001 From: Rob Cutmore Date: Mon, 13 Jun 2016 06:17:11 -0400 Subject: [PATCH] Remove groups from campaign copy (Fixes #295) An error was being raised when trying to copy groups for a campaign because the individual targets for a campaign are tracked, not the groups. --- static/js/app/campaigns.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/static/js/app/campaigns.js b/static/js/app/campaigns.js index a6442b32..fbeaaefd 100644 --- a/static/js/app/campaigns.js +++ b/static/js/app/campaigns.js @@ -202,17 +202,6 @@ function copy(idx) { $("#page").val(campaign.page.name) $("#profile").val(campaign.smtp.name) $("#url").val(campaign.url) - $.each(campaign.groups, function(i, group) { - groupTable.row.add([ - group.name, - '' - ]).draw() - $("#groupTable").on("click", "span>i.fa-trash-o", function() { - groupTable.row($(this).parents('tr')) - .remove() - .draw(); - }) - }) } $(document).ready(function() {