Show other fields for reverses

This commit is contained in:
Mark Schouten 2014-06-30 14:11:04 +02:00
parent fadb494ce0
commit fcfb23ea63

View file

@ -420,7 +420,18 @@ $(document).ready(function () {
create: true create: true
}, },
type: { type: {
options: { options: function() {
zonename = new String(zone.record.name);
if (zonename.match(/(\.in-addr|\.ip6)\.arpa/)) {
return {
'PTR':'PTR',
'NS':'NS',
'MX':'MX',
'TXT':'TXT',
'SOA':'SOA'
};
} else {
return {
'AAAA': 'AAAA', 'AAAA': 'AAAA',
'A': 'A', 'A': 'A',
'CNAME': 'CNAME', 'CNAME': 'CNAME',
@ -430,6 +441,8 @@ $(document).ready(function () {
'TXT': 'TXT', 'TXT': 'TXT',
'NS': 'NS', 'NS': 'NS',
'SOA': 'SOA' 'SOA': 'SOA'
};
}
}, },
create: true create: true
}, },