mirror of https://github.com/gophish/gophish
fix dumb things in last commit
parent
45ac3db452
commit
fa5a5c65af
|
@ -47,7 +47,7 @@ function deleteCampaign() {
|
|||
if (confirm("Are you sure you want to delete: " + campaign.name + "?")) {
|
||||
api.campaignId.delete(campaign.id)
|
||||
.success(function(msg) {
|
||||
document.location.href = '/campaigns'
|
||||
location.href = '/campaigns'
|
||||
})
|
||||
.error(function(e) {
|
||||
$("#modal\\.flashes").empty().append("<div style=\"text-align:center\" class=\"alert alert-danger\">\
|
||||
|
|
|
@ -14,8 +14,7 @@ function deleteCampaign(idx) {
|
|||
api.campaignId.delete(campaigns[idx].id)
|
||||
.success(function(data) {
|
||||
successFlash(data.message)
|
||||
load()
|
||||
//location.reload()
|
||||
location.reload()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -127,7 +127,7 @@
|
|||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
{{define "scripts"}}i
|
||||
{{define "scripts"}}
|
||||
<script src="/js/hogan.js"></script>
|
||||
<script src="/js/typeahead.min.js"></script>
|
||||
<script src="/js/app/campaigns.js"></script>
|
||||
|
|
Loading…
Reference in New Issue