summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/Menu.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/LedgerSMB/Menu.pm b/LedgerSMB/Menu.pm
index 344bb7d7..d6ce2053 100755
--- a/LedgerSMB/Menu.pm
+++ b/LedgerSMB/Menu.pm
@@ -48,7 +48,13 @@ sub menuitem {
? $self->{$item}{target} : "";
my $level = $form->escape($item);
- my $str = qq|<a style="display:block;"|.
+ my $style;
+ if ($form->{menubar}){
+ $style = "";
+ } else {
+ $style = "display:block;";
+ }
+ my $str = qq|<a style="$style"|.
qq|href="$module?path=$form->{path}&amp;action=$action&amp;|.
qq|level=$level&amp;login=$form->{login}&amp;|.
qq|timeout=$form->{timeout}&amp;sessionid=$form->{sessionid}|.