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.
pull/297/head
Rob Cutmore 2016-06-13 06:17:11 -04:00
parent 83f221e226
commit 00d1994671
1 changed files with 0 additions and 11 deletions

View File

@ -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,
'<span style="cursor:pointer;"><i class="fa fa-trash-o"></i></span>'
]).draw()
$("#groupTable").on("click", "span>i.fa-trash-o", function() {
groupTable.row($(this).parents('tr'))
.remove()
.draw();
})
})
}
$(document).ready(function() {