diff options
author | ivan <ivan> | 2004-04-07 11:04:06 +0000 |
---|---|---|
committer | ivan <ivan> | 2004-04-07 11:04:06 +0000 |
commit | 0f10241a8a2e3d5978b17f7b3b0c579902ae2250 (patch) | |
tree | e26150a279495799fe19d822ea2788b24f2693cb /httemplate | |
parent | 35effa1bf4ac902547615c816960bbc8db8e7256 (diff) |
javascript confirm when slaving a domain
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/view/svc_domain.cgi | 7 |
1 files 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 + "?"); + } </SCRIPT> <% my @records; if ( @records = $svc_domain->domain_record ) { %> @@ -90,7 +93,7 @@ Service #<%= $svcnum %> </SELECT> <INPUT TYPE="text" NAME="recdata"> <INPUT TYPE="submit" VALUE="Add record"> </FORM><BR><BR>or<BR><BR> -<FORM METHOD="POST" ACTION="<%=$p%>edit/process/domain_record.cgi"> +<FORM NAME="SlaveForm" METHOD="POST" ACTION="<%=$p%>edit/process/domain_record.cgi"> <INPUT TYPE="hidden" NAME="svcnum" VALUE="<%=$svcnum%>"> <% if ( @records ) { %> Delete all records and <% } %> @@ -99,7 +102,7 @@ Slave from nameserver IP <INPUT TYPE="hidden" NAME="reczone" VALUE="@"> <INPUT TYPE="hidden" NAME="recaf" VALUE="IN"> <INPUT TYPE="hidden" NAME="rectype" VALUE="_mstr"> -<INPUT TYPE="text" NAME="recdata"> <INPUT TYPE="submit" VALUE="Slave domain"> +<INPUT TYPE="text" NAME="recdata"> <INPUT TYPE="submit" VALUE="Slave domain" onClick="return slave_areyousure()"> </FORM> <BR><BR><%= joblisting({'svcnum'=>$svcnum}, 1) %> </BODY></HTML> |