mirror of https://github.com/gophish/gophish
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
parent
83f221e226
commit
00d1994671
|
@ -202,17 +202,6 @@ function copy(idx) {
|
||||||
$("#page").val(campaign.page.name)
|
$("#page").val(campaign.page.name)
|
||||||
$("#profile").val(campaign.smtp.name)
|
$("#profile").val(campaign.smtp.name)
|
||||||
$("#url").val(campaign.url)
|
$("#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() {
|
$(document).ready(function() {
|
||||||
|
|
Loading…
Reference in New Issue