From a5436be2ce4a3474038225a4597dd122aedf495d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 25 Jun 2013 01:00:59 +0200 Subject: [PATCH] After editing a project/jobset, redirect back to the config tab --- src/lib/Hydra/Controller/Jobset.pm | 2 +- src/lib/Hydra/Controller/Project.pm | 2 +- src/root/jobset.tt | 4 ++-- src/root/project.tt | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/Hydra/Controller/Jobset.pm b/src/lib/Hydra/Controller/Jobset.pm index 29e7418e..1caffc40 100644 --- a/src/lib/Hydra/Controller/Jobset.pm +++ b/src/lib/Hydra/Controller/Jobset.pm @@ -145,7 +145,7 @@ sub submit : Chained('jobset') PathPart Args(0) { }); $c->res->redirect($c->uri_for($self->action_for("index"), - [$c->stash->{project}->name, $c->stash->{jobset}->name])); + [$c->stash->{project}->name, $c->stash->{jobset}->name]) . "#tabs-configuration"); } diff --git a/src/lib/Hydra/Controller/Project.pm b/src/lib/Hydra/Controller/Project.pm index 84516473..a43c9f9a 100644 --- a/src/lib/Hydra/Controller/Project.pm +++ b/src/lib/Hydra/Controller/Project.pm @@ -58,7 +58,7 @@ sub submit : Chained('project') PathPart Args(0) { updateProject($c, $c->stash->{project}); }); - $c->res->redirect($c->uri_for($self->action_for("view"), [$c->stash->{project}->name])); + $c->res->redirect($c->uri_for($self->action_for("view"), [$c->stash->{project}->name]) . "#tabs-configuration"); } diff --git a/src/root/jobset.tt b/src/root/jobset.tt index 4d81fd21..156ef5df 100644 --- a/src/root/jobset.tt +++ b/src/root/jobset.tt @@ -47,7 +47,7 @@ [% END %]
  • Job status
  • Jobs
  • -
  • Configuration
  • +
  • Configuration
  • @@ -100,7 +100,7 @@
    [% END %] -
    +
    Edit diff --git a/src/root/project.tt b/src/root/project.tt index bd6217c4..2e35ec8b 100644 --- a/src/root/project.tt +++ b/src/root/project.tt @@ -3,7 +3,7 @@ @@ -77,7 +77,7 @@
    -