freeside/httemplate/view svc_domain.cgi,1.13.4.3,1.13.4.4
ivan
ivan at pouncequick.420.am
Wed Apr 7 04:04:09 PDT 2004
Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory pouncequick:/tmp/cvs-serv8820
Modified Files:
Tag: FREESIDE_1_4_BRANCH
svc_domain.cgi
Log Message:
javascript confirm when slaving a domain
Index: svc_domain.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/svc_domain.cgi,v
retrieving revision 1.13.4.3
retrieving revision 1.13.4.4
diff -u -d -r1.13.4.3 -r1.13.4.4
--- svc_domain.cgi 5 Apr 2004 09:09:15 -0000 1.13.4.3
+++ svc_domain.cgi 7 Apr 2004 11:04:07 -0000 1.13.4.4
@@ -54,6 +54,9 @@
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 @@
</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 @@
<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>
More information about the freeside-commits
mailing list