From: Ivan Kohler Date: Fri, 11 Nov 2016 22:42:48 +0000 (-0800) Subject: UX: acknowledge actions instead of silently redirecting X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=2756019bdb10fe144debfc8d6436468a89954eb3 UX: acknowledge actions instead of silently redirecting --- diff --git a/httemplate/edit/process/cust_main_attach.cgi b/httemplate/edit/process/cust_main_attach.cgi index 2935d68a0..20673dc9b 100644 --- a/httemplate/edit/process/cust_main_attach.cgi +++ b/httemplate/edit/process/cust_main_attach.cgi @@ -7,11 +7,7 @@ % $act = 'purged' if($attachnum and $purge); % $act = 'undeleted' if($attachnum and $undelete); % $act = 'deleted' if($attachnum and $delete); -<& /elements/header-popup.html, 'Attachment ' . $act &> - - +<& /elements/popup-topreload.html, mt("Attachment $act") &> % } <%init> diff --git a/httemplate/edit/process/cust_main_note.cgi b/httemplate/edit/process/cust_main_note.cgi index 2428689c6..1fd136723 100755 --- a/httemplate/edit/process/cust_main_note.cgi +++ b/httemplate/edit/process/cust_main_note.cgi @@ -2,11 +2,7 @@ % $cgi->param('error', $error); <% $cgi->redirect(popurl(2). 'cust_main_note.cgi?'. $cgi->query_string ) %> %} else { -<& /elements/header-popup.html, 'Note ' . ($notenum ? 'updated' : 'added') &> - - +<& /elements/popup-topreload.html, mt( 'Note '. ($notenum ? 'updated' : 'added') ) &> % } <%init> diff --git a/httemplate/misc/cust_main-cancel.cgi b/httemplate/misc/cust_main-cancel.cgi index 4348873cf..fcae67194 100755 --- a/httemplate/misc/cust_main-cancel.cgi +++ b/httemplate/misc/cust_main-cancel.cgi @@ -1,13 +1,4 @@ -<& /elements/header-popup.html, mt("Customer cancelled") &> - - - - +<& /elements/popup-topreload.html, mt("Customer cancelled") &> <%init> die "access denied" diff --git a/httemplate/misc/cust_main-suspend.cgi b/httemplate/misc/cust_main-suspend.cgi index f20f20c13..3087a7371 100755 --- a/httemplate/misc/cust_main-suspend.cgi +++ b/httemplate/misc/cust_main-suspend.cgi @@ -1,13 +1,4 @@ -<& /elements/header-popup.html, mt("Customer suspended") &> - - - - +<& /elements/popup-topreload.html, mt("Customer suspended") &> <%init> #false laziness w/cust_main-cancel.cgi diff --git a/httemplate/misc/cust_main-unsuspend.cgi b/httemplate/misc/cust_main-unsuspend.cgi index 7ccd707bf..5826027b2 100755 --- a/httemplate/misc/cust_main-unsuspend.cgi +++ b/httemplate/misc/cust_main-unsuspend.cgi @@ -1,12 +1,4 @@ -<& /elements/header-popup.html, mt("Customer unsuspended") &> - - - +<& /elements/popup-topreload.html, mt("Customer unsuspended") &> <%init> #false laziness w/cust_main-cancel.cgi diff --git a/httemplate/misc/process/cancel_pkg.html b/httemplate/misc/process/cancel_pkg.html index 0649261e7..7e33e15c0 100755 --- a/httemplate/misc/process/cancel_pkg.html +++ b/httemplate/misc/process/cancel_pkg.html @@ -1,13 +1,4 @@ -<& /elements/header-popup.html, emt("Package $past_method") &> - - - - +<& /elements/popup-topreload.html, et("Package $past_method") &> <%once> my %past = ( 'cancel' => 'cancelled',