diff --git a/static/js/app/campaign_results.js b/static/js/app/campaign_results.js index b4c78c06..47595fae 100644 --- a/static/js/app/campaign_results.js +++ b/static/js/app/campaign_results.js @@ -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("
\ diff --git a/static/js/app/dashboard.js b/static/js/app/dashboard.js index 37a3f379..7eac0080 100644 --- a/static/js/app/dashboard.js +++ b/static/js/app/dashboard.js @@ -14,8 +14,7 @@ function deleteCampaign(idx) { api.campaignId.delete(campaigns[idx].id) .success(function(data) { successFlash(data.message) - load() - //location.reload() + location.reload() }) } } diff --git a/templates/campaigns.html b/templates/campaigns.html index 105b4c73..8c8354c6 100644 --- a/templates/campaigns.html +++ b/templates/campaigns.html @@ -127,7 +127,7 @@
{{end}} -{{define "scripts"}}i +{{define "scripts"}}