X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fprogress-init.html;h=2cde86f5b1669cee20fd5235ccd1c28d8176333f;hb=4104f4e3d1b387296b16b4a035b4b7f42e0c5977;hp=41feaac4b28e9ce13cbf77a92069e8a67e3c09fb;hpb=4d599c8ce382f51d7bfbb4172cdc73a2c8bd400d;p=freeside.git
diff --git a/httemplate/elements/progress-init.html b/httemplate/elements/progress-init.html
index 41feaac4b..2cde86f5b 100644
--- a/httemplate/elements/progress-init.html
+++ b/httemplate/elements/progress-init.html
@@ -1,41 +1,45 @@
-<%
- my( $formname, $fields, $action, $success_url, $key ) = @_;
- $key = '' unless defined $key;
+<% include('/elements/xmlhttp.html',
+ 'method' => 'POST',
+ 'url' => $action,
+ 'subs' => [ 'start_job' ],
+ 'key' => $key,
+ )
%>
-
-
+<% include('/elements/init_overlib.html') %>
+
+
+<%init>
+
+my( $formname, $fields, $action, $url_or_message, $key ) = @_;
+$key = '' unless defined $key;
+
+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'} )
+} else {
+ $url_or_message_link = "url=$url_or_message";
+}
+
+#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;
+
+%init>