Remove priority field

It's gone from PowerDNS 3.4.2 and later.
This commit is contained in:
Christian Hofstaedtler 2015-02-07 14:37:06 +01:00
parent 20eb8afa2b
commit adcaefda59
4 changed files with 3 additions and 32 deletions

View file

@ -189,13 +189,7 @@ function displayExportIcon(zone) {
function displayContent(fieldName) {
return function(data) {
var value = data.record[fieldName];
switch (fieldName) {
case 'priority':
value = (value === 0) ? '' : value;
break;
}
return $('<span>').text(value);
return $('<span>').text(data.record[fieldName]);
}
}
@ -320,12 +314,6 @@ $(document).ready(function () {
display: displayContent('type'),
listClass: 'type'
},
priority: {
title: 'Prio',
width: '1%',
display: displayContent('priority'),
listClass: 'priority'
},
content: {
title: 'Content',
width: '30%',
@ -554,15 +542,6 @@ $(document).ready(function () {
inputClass: 'type',
listClass: 'type'
},
priority: {
title: 'Prio',
width: '1%',
create: true,
display: displayContent('priority'),
defaultValue: '<?php echo $defaults['priority']; ?>',
inputClass: 'priority',
listClass: 'priority'
},
content: {
title: 'Content',
width: '30%',