mirror of https://github.com/gophish/gophish
Merge pull request #297 from rcutmore/cleanup-campaign-copy
Remove groups from campaign copypull/322/head
commit
6558fe06d1
|
@ -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