From 0f10241a8a2e3d5978b17f7b3b0c579902ae2250 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 7 Apr 2004 11:04:06 +0000 Subject: [PATCH 1/1] javascript confirm when slaving a domain --- httemplate/view/svc_domain.cgi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/httemplate/view/svc_domain.cgi b/httemplate/view/svc_domain.cgi index 1dbe16d23..cd9f79d36 100755 --- a/httemplate/view/svc_domain.cgi +++ b/httemplate/view/svc_domain.cgi @@ -54,6 +54,9 @@ Service #<%= $svcnum %> if ( confirm("Remove this record?") == true ) window.location.href = href; } + function slave_areyousure() { + return confirm("Remove all records and slave from " + document.SlaveForm.recdata.value + "?"); + } <% my @records; if ( @records = $svc_domain->domain_record ) { %> @@ -90,7 +93,7 @@ Service #<%= $svcnum %>

or

-
+ <% if ( @records ) { %> Delete all records and <% } %> @@ -99,7 +102,7 @@ Slave from nameserver IP - +


<%= joblisting({'svcnum'=>$svcnum}, 1) %> -- 2.11.0