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 @@