X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fpopup_link_onclick.html;h=b59720a3ace6c2cb905ccc7db0e041825e9aa127;hp=8faa27f7f78778668788409da0d8d9e61d2b4c6e;hb=f822e27a1e00594332ffa487a1c284234c5580a6;hpb=50b038e338455c5d20f48f99767767b70c515c31 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" : '' ).