mirror of
https://github.com/gophish/gophish
synced 2024-11-15 00:37:14 +00:00
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.
This commit is contained in:
parent
83f221e226
commit
00d1994671
1 changed files with 0 additions and 11 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue