[freeside-commits] freeside/httemplate/elements popup_link_onclick.html, 1.1, 1.2

Ivan,,, ivan at wavetail.420.am
Mon Mar 31 16:08:02 PDT 2008


Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv16532/elements

Modified Files:
	popup_link_onclick.html 
Log Message:
clean up overlib usage for customer notes

Index: popup_link_onclick.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/popup_link_onclick.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- popup_link_onclick.html	31 Mar 2008 21:11:02 -0000	1.1
+++ popup_link_onclick.html	31 Mar 2008 23:08:00 -0000	1.2
@@ -25,7 +25,7 @@
 % }
 <%init>
 
-my($action, $actionlabel) = ( '', '' );
+my( $action, $actionlabel, $frame ) = ( '', '', '' );
 my( $width, $height ) = ( 540, 336 );
 my $closetext = 'Close';
 my $color = '#333399';
@@ -45,11 +45,18 @@
 $height      = $params->{'height'}      if exists $params->{'height'};
 $color       = $params->{'color'}       if exists $params->{'color'};
 $closetext   = $params->{'closetext'}   if exists $params->{'closetext'};
+$frame       = $params->{'frame'}       if exists $params->{'frame'};
 
 #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 $onclick = "overlib( OLiframeContent('$action', $width, $height, '$popup_name' ), CAPTION, '$actionlabel', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK, BGCOLOR, '$color', CGCOLOR, '$color', CLOSETEXT, '$closetext' ); return false;";
+my $onclick =
+  "overlib( OLiframeContent('$action', $width, $height, '$popup_name' ), ".
+    "CAPTION, '$actionlabel', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, ".
+    "DRAGGABLE, CLOSECLICK, ".
+    "BGCOLOR, '$color', CGCOLOR, '$color', CLOSETEXT, '$closetext'".
+    ( $frame ? ", FRAME, $frame" : '' ).
+  "); return false;";
 
 </%init>



More information about the freeside-commits mailing list