[freeside-commits] freeside/httemplate/elements header-popup.html, 1.7, 1.8 progress-init.html, 1.16, 1.17 progress-popup.html, 1.11, 1.12

Mark Wells mark at wavetail.420.am
Thu May 26 18:11:04 PDT 2011


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

Modified Files:
	header-popup.html progress-init.html progress-popup.html 
Log Message:
invoice batch download fix, #11871

Index: progress-popup.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/progress-popup.html,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -w -d -r1.11 -r1.12
--- progress-popup.html	1 Jun 2010 19:58:27 -0000	1.11
+++ progress-popup.html	27 May 2011 01:11:02 -0000	1.12
@@ -2,6 +2,7 @@
 %  my $jobnum = $cgi->param('jobnum');
 %  my $url = $cgi->param('url');
 %  my $message = $cgi->param('message');
+%  my $popup_url = $cgi->param('popup_url');
 %  my $formname = scalar($cgi->param('formname'));
 %
 
@@ -64,11 +65,12 @@
 % } elsif ( $url ) { 
 
     window.top.location.href = '<% $url %>';
+% } elsif ( $popup_url ) {
+    document.parentWindow.location.replace('<% $popup_url %>');
 % } else { 
 
     alert('job done but no url or message specified');
 % } 
-
   } else if ( status.indexOf('done') > -1 ) {
 
     document.getElementById("progress_message").innerHTML = "Loading report";

Index: header-popup.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/header-popup.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -w -d -r1.7 -r1.8
--- header-popup.html	11 May 2011 16:20:12 -0000	1.7
+++ header-popup.html	27 May 2011 01:11:02 -0000	1.8
@@ -27,7 +27,7 @@
     <META HTTP-Equiv="Expires" Content="0"> 
     <% $head %>
   </HEAD>
-  <BODY BGCOLOR="#f8f8f8" <% $etc %>>
+  <BODY <% $etc %>>
     <link href="<%$fsurl%>elements/freeside.css" type="text/css" rel="stylesheet">
     <FONT SIZE=6>
       <CENTER><% $title |h %></CENTER>
@@ -55,6 +55,7 @@
   $etc = @_ ? shift : ''; #$etc is for things like onLoad= etc.
   $head = @_ ? shift : ''; #$head is for things that go in the <HEAD> section
 }
+$etc .= 'BGCOLOR="#f8f8f8"' if (! $etc =~ /BGCOLOR/i );
 
 my $conf = new FS::Conf;
 

Index: progress-init.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/progress-init.html,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -w -d -r1.16 -r1.17
--- progress-init.html	6 Jul 2010 12:18:11 -0000	1.16
+++ progress-init.html	27 May 2011 01:11:02 -0000	1.17
@@ -11,6 +11,12 @@
              $p.'misc/process_something.html',
              { url => $p.'where_to_go_next.html' },
          #or { message => 'Finished!' },
+         #or { url => $p.'where_to_go.html',
+               message => 'Finished' },
+         # which displays the message, then waits for confirmation before 
+         # redirecting to the URL.
+         #or { popup_url => $p.'popup_contents.html' }
+         # which loads that URL into the popup after completion
          ) %>
   </FORM>
   <SCRIPT TYPE="text/javascript>process();</SCRIPT>
@@ -118,6 +124,8 @@
   $url_or_message_link = 'message='. uri_escape( $url_or_message->{'message'} );
   $url_or_message_link .= ';url='.   uri_escape( $url_or_message->{'url'} )
     if $url_or_message->{'url'};
+  $url_or_message_link = 'popup_url=' .uri_escape( $url_or_message->{'popup_url'} )
+    if $url_or_message->{'popup_url'};
 } else {
   $url_or_message_link = "url=$url_or_message";
 }



More information about the freeside-commits mailing list