X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fprogress-init.html;h=2ec248e322c01545e29f644d06c8943989dba79a;hb=bfee00e26a87ccc687f085fdeaffef8e4b2a9b50;hp=2cde86f5b1669cee20fd5235ccd1c28d8176333f;hpb=12eb930abf31078c68dbf7eb94865faa1c59fc9e;p=freeside.git diff --git a/httemplate/elements/progress-init.html b/httemplate/elements/progress-init.html index 2cde86f5b..2ec248e32 100644 --- a/httemplate/elements/progress-init.html +++ b/httemplate/elements/progress-init.html @@ -1,3 +1,51 @@ +<%doc> +Example: +In misc/something.html: + +
+ +<%once> +my $noinit = 0; +%once> <%init> my( $formname, $fields, $action, $url_or_message, $key ) = @_; @@ -73,8 +127,12 @@ $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'} ) + $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"; }