diff options
author | ivan <ivan> | 2005-11-10 00:00:58 +0000 |
---|---|---|
committer | ivan <ivan> | 2005-11-10 00:00:58 +0000 |
commit | 07ffd93703760f7ee6b3f29451e3369493a2f560 (patch) | |
tree | 81ce26fc55e7e72241c9931c53b692fd3a14e0cc /httemplate/view | |
parent | 33dd0516644a865c0d664bd0eeb956ba318d7650 (diff) |
add javascript confirmation to unaudited domain deletion, add record being deleted to record deletion popup
Diffstat (limited to 'httemplate/view')
-rwxr-xr-x | httemplate/view/svc_domain.cgi | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/httemplate/view/svc_domain.cgi b/httemplate/view/svc_domain.cgi index 057b15788..428f3e9bf 100755 --- a/httemplate/view/svc_domain.cgi +++ b/httemplate/view/svc_domain.cgi @@ -36,8 +36,8 @@ my $domain = $svc_domain->domain; ( ( $pkgnum || $custnum ) ? ( "View this customer (#$custnum)" => "${p}view/cust_main.cgi?$custnum", ) - : ( "Cancel this (unaudited) domain" => - "${p}misc/cancel-unaudited.cgi?$svcnum" ) + : ( "Delete this (unaudited) domain" => + "javascript:areyousure('${p}misc/cancel-unaudited.cgi?$svcnum', 'Delete $domain and all records?' )" ) ), "Main menu" => $p, )) %> @@ -50,8 +50,8 @@ Service #<%= $svcnum %> <BR><BR><A HREF="<%= ${p} %>misc/whois.cgi?custnum=<%=$custnum%>;svcnum=<%=$svcnum%>;domain=<%=$domain%>">View whois information.</A> <BR><BR> <SCRIPT> - function areyousure(href) { - if ( confirm("Remove this record?") == true ) + function areyousure(href, message) { + if ( confirm(message) == true ) window.location.href = href; } function slave_areyousure() { @@ -74,7 +74,7 @@ Service #<%= $svcnum %> <td><%= $domain_record->recdata %> <% unless ( $domain_record->rectype eq 'SOA' ) { %> - (<A HREF="javascript:areyousure('<%=$p%>misc/delete-domain_record.cgi?<%=$domain_record->recnum%>')">delete</A>) + (<A HREF="javascript:areyousure('<%=$p%>misc/delete-domain_record.cgi?<%=$domain_record->recnum%>', 'Delete \'<%= $domain_record->reczone %> <%= $type %> <%= $domain_record->recdata %>\' ?' )">delete</A>) <% } %> </td></tr> <% } %> |