- Fixed a bug where context menu links would take on the properties of the

page.
 - Added a context menu to the last item in the crumb trail in the asset 
   manager as discussed in Community IRC.
This commit is contained in:
JT Smith 2006-05-24 20:21:01 +00:00
parent c3128c93e9
commit 771f6408af
3 changed files with 23 additions and 3 deletions

View file

@ -20,6 +20,10 @@
- better HTML compliancy
- fixed a lot of POD
- fix - Changing rank ot the asset (Martin kamerbeek / Procolix)
- Fixed a bug where context menu links would take on the properties of the
page.
- Added a context menu to the last item in the crumb trail in the asset
manager as discussed in Community IRC.
6.99.1
- Bugfixes on dashboard to fix template errors.

View file

@ -1077,9 +1077,25 @@ sub manageAssets {
my $ancestors = $self->getLineage(["self","ancestors"],{returnObjects=>1});
my @crumbtrail;
foreach my $ancestor (@{$ancestors}) {
push(@crumbtrail,'<a href="'.$ancestor->getUrl("func=manageAssets").'">'.$ancestor->getTitle.'</a>');
if ($ancestor->getId eq $self->getId) {
my $title = $self->getTitle;
$title =~ s/\'/\\\'/g;
my $more = '<script type="text/javascript">
var ct_contextMenu = new contextMenu_createWithLink("ct_'.$self->getId.'","'.$title.'");
ct_contextMenu.addLink("'.$self->getUrl("func=changeUrl;proceed=manageAssets").'","'.$i18n->get("change url").'");
ct_contextMenu.addLink("'.$self->getUrl("func=editBranch").'","'.$i18n->get("edit branch").'");
ct_contextMenu.addLink("'.$self->getUrl("func=createShortcut;proceed=manageAssets").'","'.$i18n->get("create shortcut").'");
ct_contextMenu.addLink("'.$self->getUrl("func=manageRevisions").'","'.$i18n->get("revisions").'");
ct_contextMenu.addLink("'.$self->getUrl.'","'.$i18n->get("view").'"); '."\n";
$more .= 'ct_contextMenu.addLink("'.$self->getUrl("func=edit;proceed=manageAssets").'","'.$i18n->get("edit").'");' unless ($self->isLocked);
$more .= 'ct_contextMenu.addLink("'.$self->getUrl("func=lock;proceed=manageAssets").'","'.$i18n->get("lock").'");' unless ($self->isLocked);
$more .= "\nct_contextMenu.print();\n</script>\n";
push(@crumbtrail,$more);
} else {
push(@crumbtrail,'<a href="'.$ancestor->getUrl("func=manageAssets").'">'.$ancestor->getTitle.'</a>');
}
}
my $output = '<div class="am-crumbtrail">'.join(" > ",@crumbtrail).'</div>';
my $output = '<div class="am-crumbtrail">'.join(" &gt; ",@crumbtrail).'</div>';
$output .= "
<script type=\"text/javascript\">
//<![CDATA[

View file

@ -17,7 +17,7 @@
border-right: 3px groove #999999;
border-left: 0px groove #999999;
}
.contextMenu_skin A {
.contextMenu_skin A, .contextMenu_skin A:link, .contextMenu_skin A:visited {
font-weight: normal;
width: 100%;
color: black;