[freeside-commits] freeside/httemplate/elements progress-init.html, 1.12.2.1, 1.12.2.2 progress-popup.html, 1.8, 1.8.2.1
Ivan,,,
ivan at wavetail.420.am
Thu Aug 14 04:54:12 PDT 2008
Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv9767/httemplate/elements
Modified Files:
Tag: FREESIDE_1_7_BRANCH
progress-init.html progress-popup.html
Log Message:
customer import: add progress bar & redirect to a search of the imported customers, #3475
Index: progress-popup.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/progress-popup.html,v
retrieving revision 1.8
retrieving revision 1.8.2.1
diff -u -d -r1.8 -r1.8.2.1
--- progress-popup.html 22 Jan 2007 11:36:40 -0000 1.8
+++ progress-popup.html 14 Aug 2008 11:54:10 -0000 1.8.2.1
@@ -41,15 +41,24 @@
//jsrsExecute( '<%$p%>elements/jsrsServer.html', updateStatus, 'job_status', '<% $jobnum %>' );
job_status( '<% $jobnum %>', updateStatus );
} else if ( status.indexOf('complete') > -1 ) {
-% if ( $message ) {
+% if ( $message ) {
+%
+% my $onClick = $url
+% ? "window.top.location.href = \\'$url\\';"
+% : 'parent.nd(1);';
document.getElementById("progress_message").innerHTML = "<% $message %>";
document.getElementById("progress_bar").innerHTML = '';
- document.getElementById("progress_percent").innerHTML = '<INPUT TYPE="button" VALUE="OK" onClick="parent.nd(1);">';
+ document.getElementById("progress_percent").innerHTML =
+ '<INPUT TYPE="button" VALUE="OK" onClick="<% $onClick %>">';
document.getElementById("progress_jobnum").innerHTML = '';
- if ( parent.document.<%$formname%>.submit.disabled == true ) {
- parent.document.<%$formname%>.submit.disabled=false;
- }
+
+% unless ( $url ) {
+ if ( parent.document.<%$formname%>.submit.disabled == true ) {
+ parent.document.<%$formname%>.submit.disabled=false;
+ }
+% }
+
% } elsif ( $url ) {
window.top.location.href = '<% $url %>';
Index: progress-init.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/progress-init.html,v
retrieving revision 1.12.2.1
retrieving revision 1.12.2.2
diff -u -d -r1.12.2.1 -r1.12.2.2
--- progress-init.html 31 Mar 2008 23:19:23 -0000 1.12.2.1
+++ progress-init.html 14 Aug 2008 11:54:10 -0000 1.12.2.2
@@ -73,8 +73,9 @@
my $url_or_message_link;
if ( ref($url_or_message) ) { #its a message or something
- $url_or_message_link =
- 'message='. uri_escape( $url_or_message->{'message'} )
+ $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'};
} else {
$url_or_message_link = "url=$url_or_message";
}
More information about the freeside-commits
mailing list