mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-06-07 00:47:00 +03:00
Remove priority field
It's gone from PowerDNS 3.4.2 and later.
This commit is contained in:
parent
20eb8afa2b
commit
adcaefda59
4 changed files with 3 additions and 32 deletions
23
index.php
23
index.php
|
@ -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%',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue