From fa5a5c65afb2fd9cac6286e1871e4ecdca5d702f Mon Sep 17 00:00:00 2001 From: William Woodson Date: Sun, 17 Jan 2016 13:25:13 -0600 Subject: [PATCH] fix dumb things in last commit --- static/js/app/campaign_results.js | 2 +- static/js/app/dashboard.js | 3 +-- templates/campaigns.html | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) 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"}}