diff options
Diffstat (limited to 'httemplate/misc')
-rwxr-xr-x | httemplate/misc/process/cancel_pkg.html | 4 | ||||
-rwxr-xr-x | httemplate/misc/unsusp_pkg.cgi | 11 |
2 files changed, 14 insertions, 1 deletions
diff --git a/httemplate/misc/process/cancel_pkg.html b/httemplate/misc/process/cancel_pkg.html index b8be27113..0649261e7 100755 --- a/httemplate/misc/process/cancel_pkg.html +++ b/httemplate/misc/process/cancel_pkg.html @@ -1,5 +1,9 @@ <& /elements/header-popup.html, emt("Package $past_method") &> + <script src="<% $fsurl %>elements/js.cookie.js"></script> <SCRIPT TYPE="text/javascript"> + Cookies.set('freeside_status', <% mt("Package $past_method") |js_string %>,{ + expires: 0.0035 + }); topreload(); </SCRIPT> </BODY> diff --git a/httemplate/misc/unsusp_pkg.cgi b/httemplate/misc/unsusp_pkg.cgi index b350693dd..ad7effcb3 100755 --- a/httemplate/misc/unsusp_pkg.cgi +++ b/httemplate/misc/unsusp_pkg.cgi @@ -1,7 +1,16 @@ %if ( $error ) { % errorpage($error); %} else { -<% $cgi->redirect(popurl(2). "view/cust_main.cgi?".$cust_pkg->getfield('custnum')) %> +% my $cookie = CGI::Cookie->new( -name => 'freeside_status', +% -value => mt('Package unsuspended'), +% -expires => '+5m', +% ); +% #$r->headers_out->add( 'Set-Cookie' => $cookie->as_string ); +<% $cgi->redirect( + -uri => popurl(2). "view/cust_main.cgi?show=packages;custnum=".$cust_pkg->getfield('custnum'), + -cookie => $cookie + ) +%> %} <%init> |