diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-09-29 10:02:26 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-09-29 10:02:26 -0700 |
commit | b2f778f0d9406c4edeb6a0c13aa6d6791e93b065 (patch) | |
tree | 334a6c9ea76901da48e73ef38d277e7999e4d05b /httemplate/elements/popup_link_onclick.html | |
parent | 4f9036b228a12204d8282344a5abbdd621959a85 (diff) |
remove popup border cruft
Diffstat (limited to 'httemplate/elements/popup_link_onclick.html')
-rw-r--r-- | httemplate/elements/popup_link_onclick.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/httemplate/elements/popup_link_onclick.html b/httemplate/elements/popup_link_onclick.html index 8faa27f7f..b59720a3a 100644 --- a/httemplate/elements/popup_link_onclick.html +++ b/httemplate/elements/popup_link_onclick.html @@ -21,6 +21,7 @@ Example: 'height' => 336, 'color' => '#ff0000', 'closetext' => 'Go Away', # the value '' removes the link + 'nocenter' => 0, #bool, elminates centering the popup #uncommon opt 'frame' => 0, #bool @@ -68,8 +69,9 @@ my $popup_name = 'popup-'.random_id(); my $onclick = "overlib( OLiframeContent($action, $width, $height, '$popup_name', 0, '$scrolling' ), ". - "CAPTION, $actionlabel, STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, ". - "DRAGGABLE, CLOSECLICK, ". + "CAPTION, $actionlabel, STICKY, AUTOSTATUSCAP, ". + ( $params->{'nocenter'} ? "" : "MIDX, 0, MIDY, 0, " ). + "DRAGGABLE, CLOSECLICK, TEXTPADDING, 0, BASE, 0, ". "BGCOLOR, '$color', CGCOLOR, '$color', FGCOLOR, '#f8f8f8', ". "CLOSETEXT, '$closetext'". ( $frame ? ", FRAME, $frame" : '' ). |