diff options
| -rw-r--r-- | httemplate/config/config-view.cgi | 13 | ||||
| -rw-r--r-- | httemplate/elements/popup_link.html | 6 | 
2 files changed, 15 insertions, 4 deletions
diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index f5cead575..b769e0813 100644 --- a/httemplate/config/config-view.cgi +++ b/httemplate/config/config-view.cgi @@ -59,9 +59,16 @@ Click on a configuration value to change it.  %   }      <tr> -      <td><a href="javascript:void(0);" onClick="overlib( OLiframeContent('config.cgi?key=<% $i->key %>;agentnum=<% $agentnum %>', <% $width %>, <% $height %>, 'config_popup' ), CAPTION, 'Enter configuration value', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK ); return false;" name="<% $i->key %>"> -%#        <b><% $i->key %></b></a> - <% $i->description %> -        <b><% $i->key %></b></a>: <% $i->description %> +      <td><% include('/elements/popup_link.html', +                       'action'      => 'config.cgi?key='.      $i->key. +                                                  ';agentnum='. $agentnum, +                       'width'       => $width, +                       'height'      => $height, +                       'actionlabel' => 'Enter configuration value', +                       'label'       => '<b>'. $i->key. '</b>', +                       'aname'       => $i->key, +                    ) +          %>: <% $i->description %>        </td>        <td><table border=0>  % foreach my $type (@types) { diff --git a/httemplate/elements/popup_link.html b/httemplate/elements/popup_link.html index 0915bfa68..a444ad125 100644 --- a/httemplate/elements/popup_link.html +++ b/httemplate/elements/popup_link.html @@ -18,11 +18,15 @@ Example:      'width'          => '540',      'color'          => '#ff0000',      'closetext'      => 'Go Away',      # the value '' removes the link +    'aname'          => "target", # link NAME= value, useful for #targets    } )  </%doc>  % if ($params->{'action'} && $label) { -<A HREF="javascript:void(0);" onClick="<% $onclick %>"><% $label %></A>\ +<A HREF="javascript:void(0);" +   onClick="<% $onclick %>" +   <% $params->{'aname'} ? 'NAME="'. $params->{'aname'}. '"' : '' %> +><% $label %></A>\  % }  <%init>  | 
