clicking active version tag on admin bar opens tag for editing

This commit is contained in:
Graham Knop 2007-09-03 20:03:51 +00:00
parent 6eee4ee409
commit eb398cbbbc
2 changed files with 2 additions and 1 deletions

View file

@ -5,6 +5,7 @@
- All toolbar icons now have a class called "toolbarIcon" so they can be
styled by external CSS.
- Profile fields and categories and have confirmation boxes when deleting using the side menu
- Clicking active version tag in sidebar opens up version tag edit screen
7.4.5
- fix: Apostrophy incorrectly escaped as double quote in some places

View file

@ -119,7 +119,7 @@ sub process {
foreach my $tag (@{WebGUI::VersionTag->getOpenTags($session)}) {
next unless $session->user->isInGroup($tag->get("groupToUse"));
push(@tags, {
url=>$session->url->page("op=setWorkingVersionTag;backToSite=1;tagId=".$tag->getId),
url=>$session->url->page("op=" . ($tag->getId eq $workingId ? "editVersionTag" : "setWorkingVersionTag") . ";backToSite=1;tagId=".$tag->getId),
title=>($tag->getId eq $workingId) ? '<span style="color: #000080;">* '.$tag->get("name").'</span>' : $tag->get("name"),
icon=>$session->url->extras('spacer.gif')
});