X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fpopup_link_onclick.html;h=612de7520504cdb361ab15a03748ff10d03f52ca;hb=600e9b690d7649e8cde7a9a4cd1089fcb432d238;hp=5173115a5045fbb5e5bc0913878995910716affa;hpb=5f10fda22d066f3e730db11b7c26938547014631;p=freeside.git diff --git a/httemplate/elements/popup_link_onclick.html b/httemplate/elements/popup_link_onclick.html index 5173115a5..612de7520 100644 --- a/httemplate/elements/popup_link_onclick.html +++ b/httemplate/elements/popup_link_onclick.html @@ -62,13 +62,14 @@ $scrolling = $params->{'scrolling'} if exists $params->{'scrolling'}; #stupid safari is caching the "location" of popup iframs, and submitting them #instead of displaying them. this should prevent that. -my $popup_name = 'popup-'.time. "-$$-". rand() * 2**32; +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, ". - "BGCOLOR, '$color', CGCOLOR, '$color', CLOSETEXT, '$closetext'". + "BGCOLOR, '$color', CGCOLOR, '$color', FGCOLOR, '#f8f8f8', ". + "CLOSETEXT, '$closetext'". ( $frame ? ", FRAME, $frame" : '' ). ");";