- Internationalized a bunch of stuff that was previously uninternationalized.
- Fixed a bug in the survey that caused users to not be able to submit survey's. - added context menu to nav toolbar - added a switch to disable content locking on alternate criteria shortcuts.
This commit is contained in:
parent
d8a6eb332c
commit
b631cbb2f4
9 changed files with 147 additions and 25 deletions
|
|
@ -286,7 +286,14 @@ sub getToolbar {
|
|||
$returnUrl = "&proceed=goBackToPage&returnUrl=".WebGUI::URL::escape($session{asset}->getUrl);
|
||||
}
|
||||
my $toolbar = editIcon('func=edit'.$returnUrl,$self->get("url"));
|
||||
return '<img src="'.$self->getIcon(1).'" border="0" title="'.$self->getName.'" alt="'.$self->getName.'" align="absmiddle">'.$toolbar;
|
||||
my $i18n = WebGUI::International->new("Asset");
|
||||
return '<script type="text/javascript">
|
||||
var contextMenu = new contextMenu_create("'.$self->getIcon(1).'","'.$self->getId.'","'.$self->getName.'");
|
||||
contextMenu.addLink("'.$self->getUrl("func=copy").'","'.$i18n->get("copy").'");
|
||||
contextMenu.addLink("'.$self->getUrl("func=manageAssets").'","'.$i18n->get("manage").'");
|
||||
contextMenu.addLink("'.$self->getUrl.'","'.$i18n->get("view").'");
|
||||
contextMenu.draw();
|
||||
</script>'.$toolbar;
|
||||
}
|
||||
return $self->SUPER::getToolbar();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue