From 854d419b2c4d17d79bd4f30a7996551f57884a75 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 14 Oct 2013 17:35:14 +0200 Subject: [PATCH] Use redirectJSON --- src/root/edit-jobset.tt | 7 ++----- src/root/edit-project.tt | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/root/edit-jobset.tt b/src/root/edit-jobset.tt index 8c2e9b87..5dac7396 100644 --- a/src/root/edit-jobset.tt +++ b/src/root/edit-jobset.tt @@ -174,17 +174,14 @@ }); $("#submit-jobset").click(function() { - requestJSON({ + redirectJSON({ [% IF create || clone %] url: "[% c.uri_for('/jobset' project.name '.new') %]", [% ELSE %] url: "[% c.uri_for('/jobset' project.name jobset.name) %]", [% END %] data: $(this).parents("form").serialize(), - type: 'PUT', - success: function(data) { - window.location = data.redirect; - }, + type: 'PUT' }); return false; }); diff --git a/src/root/edit-project.tt b/src/root/edit-project.tt index 58fcfecf..b8d9bacb 100644 --- a/src/root/edit-project.tt +++ b/src/root/edit-project.tt @@ -66,17 +66,14 @@