[freeside-commits] freeside/httemplate/elements progress-popup.html, 1.10, 1.10.2.1

Jeff Finucane,420,, jeff at wavetail.420.am
Tue Jun 1 12:58:07 PDT 2010


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

Modified Files:
      Tag: FREESIDE_1_9_BRANCH
	progress-popup.html 
Log Message:
add progressbar, redirection, and improve links RT#8274

Index: progress-popup.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/progress-popup.html,v
retrieving revision 1.10
retrieving revision 1.10.2.1
diff -u -w -d -r1.10 -r1.10.2.1
--- progress-popup.html	21 Apr 2009 02:23:13 -0000	1.10
+++ progress-popup.html	1 Jun 2010 19:58:05 -0000	1.10.2.1
@@ -69,6 +69,14 @@
     alert('job done but no url or message specified');
 % } 
 
+  } else if ( status.indexOf('done') > -1 ) {
+
+    document.getElementById("progress_message").innerHTML = "Loading report";
+    document.getElementById("progress_bar").innerHTML = '';
+    document.getElementById("progress_percent").innerHTML = '';
+    document.getElementById("progress_jobnum").innerHTML = '';
+    window.top.location.href = statustext.substr(8, statustext.length-18);
+
   } else if ( status.indexOf('error') > -1 ) {
     document.getElementById("progress_message").innerHTML = '<FONT SIZE="+1" COLOR="#FF0000">Error: ' + statustext + '</FONT>';
     document.getElementById("progress_bar").innerHTML = '';



More information about the freeside-commits mailing list