Added export to context menu in asset manager

This commit is contained in:
Graham Knop 2007-08-14 15:10:50 +00:00
parent 02c334e76c
commit 714757158b
2 changed files with 7 additions and 0 deletions

View file

@ -1,6 +1,7 @@
7.4.3
- Data Forms set reply to to the same as the from field
- Config file bugs fixed, see gotcha.txt for details.
- Added export to context menu in asset manager
7.4.2

View file

@ -1367,6 +1367,9 @@ sub manageAssets {
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);
if (defined $self->session->config->get("exportPath")) {
$more .= 'ct_contextMenu.addLink("'.$self->getUrl("func=export").'","'.$i18n->get("Export","Icon").'");';
}
$more .= "\nct_contextMenu.print();\n</script>\n";
push(@crumbtrail,$more);
} else {
@ -1396,6 +1399,9 @@ sub manageAssets {
contextMenu.addLink("'.$child->getUrl("func=manageRevisions").'","'.$i18n->get("revisions").'");
contextMenu.addLink("'.$child->getUrl.'","'.$i18n->get("view").'"); '."\n";
$output .= 'contextMenu.addLink("'.$child->getUrl("func=lock;proceed=manageAssets").'","'.$i18n->get("lock").'");' unless ($child->isLocked);
if (defined $self->session->config->get("exportPath")) {
$output .= 'contextMenu.addLink("'.$child->getUrl("func=export").'","'.$i18n->get("Export","Icon").'");';
}
my $title = $child->getTitle;
$title =~ s/\'/\\\'/g;
my $locked;