Skip to content

Commit

Permalink
* Allow menus to be explicitly set with CGI. This allows a bounce to
Browse files Browse the repository at this point in the history
  flex_select (like userdb and transactions in large mode) to get the
  right menu.
  • Loading branch information
perusionmike committed Nov 2, 2005
1 parent bb63ad6 commit 940844b
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion dist/lib/UI/vars/UI_STD_HEAD
@@ -1,4 +1,4 @@
## UI Header vars, version: $Id: UI_STD_HEAD,v 2.41 2005-04-17 19:38:07 mheins Exp $
## UI Header vars, version: $Id: UI_STD_HEAD,v 2.42 2005-11-02 17:26:43 mheins Exp $
Variable UI_STD_INIT <<EOV
[calcn]
# is this browser able to grok DHTML ?
Expand Down Expand Up @@ -139,6 +139,22 @@ Variable UI_STD_HEAD <<EOV
[/menu]
[/if]

[calc]
my @things = qw/
top_menu
main_menu
second_menu
third_menu
/;

for(@things) {
next unless $CGI->{$_};
$Tag->tmp($_);
$Scratch->{$_} = $CGI->{$_};
}
return;
[/calc]

[output name=top_tabs]
[menu
name="[either][scratch top_menu][or]Top[/either]"
Expand Down

0 comments on commit 940844b

Please sign in to comment.