Fixed new campaign redirect

pull/88/head
Jordan Wright 2016-01-18 11:53:27 -06:00
parent ac368e1046
commit 1b5fb638ea
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ function save() {
api.campaigns.post(campaign)
.success(function(data) {
successFlash("Campaign successfully launched!")
window.location = "/campaigns/" + campaign.id.toString()
window.location = "/campaigns/" + data.id.toString()
})
.error(function(data) {
$("#modal\\.flashes").empty().append("<div style=\"text-align:center\" class=\"alert alert-danger\">\