Merge pull request #297 from rcutmore/cleanup-campaign-copy

Remove groups from campaign copy
pull/322/head
Jordan Wright 2016-06-13 17:22:39 -05:00 committed by GitHub
commit 6558fe06d1
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() {