From: ivan Date: Wed, 7 Apr 2004 11:04:06 +0000 (+0000) Subject: javascript confirm when slaving a domain X-Git-Tag: BEFORE_FINAL_MASONIZE~1164 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=0f10241a8a2e3d5978b17f7b3b0c579902ae2250;hp=35effa1bf4ac902547615c816960bbc8db8e7256 javascript confirm when slaving a domain --- 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) %>