summaryrefslogtreecommitdiffstats
path: root/tinydns-edit-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-11-11 12:29:08 +0000
committerTed Trask <ttrask01@yahoo.com>2009-11-11 12:29:08 +0000
commit5fb5da5efb77f3a64586cafd80b1fbfade2fb009 (patch)
tree47ad74b4295b61ee89bf302d09d2b7141bc38ee9 /tinydns-edit-html.lsp
parent9e62c361c0fd51809a6fefdf5772768147b310a7 (diff)
downloadacf-tinydns-5fb5da5efb77f3a64586cafd80b1fbfade2fb009.tar.bz2
acf-tinydns-5fb5da5efb77f3a64586cafd80b1fbfade2fb009.tar.xz
Finished support for SRV and NAPTR records. Bumped to 0.3.1v0.3.1
Diffstat (limited to 'tinydns-edit-html.lsp')
-rw-r--r--tinydns-edit-html.lsp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tinydns-edit-html.lsp b/tinydns-edit-html.lsp
index 4361b8f..da18048 100644
--- a/tinydns-edit-html.lsp
+++ b/tinydns-edit-html.lsp
@@ -33,7 +33,7 @@
entryTypes[9]=new Entry("Z","SOA record",11,"Domain","Primary name server","Contact address","Serial number","Refresh time","Retry time","Expire time","Minimum time","Time to live","Timestamp","Location");
entryTypes[10]=new Entry(":","Generic record",6,"Domain","Record type","Record data","Time to live","Timestamp","Location");
entryTypes[11]=new Entry("%","Client location",2,"Location","IP prefix");
- entryTypes[12]=new Entry("S","Service location",8,"Domain", "IP address", "X", "Port", "Weight", "Priority", "Time to live", "Timestamp");
+ entryTypes[12]=new Entry("S","Service location",8,"Domain Service", "IP address", "Server", "Port", "Weight", "Priority", "Time to live", "Timestamp");
entryTypes[13]=new Entry("N","Naming authority pointer",9,"Domain", "Order", "Preference", "Flags", "Service", "Regular expression", "Replacement", "Time to live", "Timestamp");
function finishForm(entry){
@@ -74,7 +74,7 @@
}
for (i=0; i<entryType.num; i++){
if (entries[i] === null) { entries[i] = ""; }
- if (entryType.descriptions[i] == "Domain" || entryType.descriptions[i] == "Alias" || entryType.descriptions[i] == "Host" )
+ if (entryType.descriptions[i] == "Domain" || entryType.descriptions[i] == "Alias" || entryType.descriptions[i] == "Host" || entryType.descriptions[i] == "Domain Service" )
form = form + '<dt>' + entryType.descriptions[i] + '</dt><dd><input type="text" value="' + entries[i].replace(/\.?<%= string.gsub(html.html_escape(domain), "[\\%[%]%.%*%?%+%{%^%$]", "\\%1") %>$/i, "") + '" name="fixme"> . <%= html.html_escape(domain) %></dd>';
else
form = form + '<dt>' + entryType.descriptions[i] + '</dt><dd><input type="text" value="' + entries[i] + '"></dd>';
@@ -132,7 +132,7 @@
$(function(){
addLinks($("#entries").find("tr"));
- $("#entries").append(addEntry).find("a").click(addLine);
+ $("#entries").append(addEntry).find("a:last").click(addLine);
$("input.submit").click(submitFile);
<% if form.value.filecontent.linenumber then %>
$("#entries tr:eq(<%= form.value.filecontent.linenumber - 1 %>)").find("a:eq(2)").click();