X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fprogress-init.html;h=2ec248e322c01545e29f644d06c8943989dba79a;hb=ea3ce8d7f076e7fecff4be7ae63bc413adb0adf5;hp=20eb9bfa6d3c7c67c49e173728d466f9de31f8e3;hpb=b7dbecfb82aea90a4289089927d0b17436b2ed5a;p=freeside.git diff --git a/httemplate/elements/progress-init.html b/httemplate/elements/progress-init.html index 20eb9bfa6..2ec248e32 100644 --- a/httemplate/elements/progress-init.html +++ b/httemplate/elements/progress-init.html @@ -11,7 +11,13 @@ In misc/something.html: $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 + ) %> +<%once> +my $noinit = 0; + <%init> my( $formname, $fields, $action, $url_or_message, $key ) = @_; @@ -120,6 +130,9 @@ 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 .= ';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"; }