diff --git a/includes/config.inc.php-dist b/includes/config.inc.php-dist index f85f46d..a70ffdd 100644 --- a/includes/config.inc.php-dist +++ b/includes/config.inc.php-dist @@ -54,6 +54,7 @@ $defaults['defaulttype'] = 'Master'; # Choose between 'Native $defaults['ns'][0] = 'unconfigured.primaryns'; # The value of the first NS-record $defaults['ns'][1] = 'unconfigured.secondaryns'; # The value of the second NS-record $defaults['ttl'] = 3600; # Default TTL for records +$defaults['disabled'] = false; # Default disabled state ## UI Options $menutype = 'horizontal'; # horizontal|vertical - use a horizontal or vertical menu diff --git a/index.php b/index.php index de19581..b72137d 100644 --- a/index.php +++ b/index.php @@ -346,6 +346,12 @@ $(document).ready(function () { width: '2%', display: displayContent('ttl'), listClass: 'ttl' + }, + disabled: { + title: 'Disabled', + width: '2%', + display: displayContent('disabled'), + listClass: 'disabled' } } }, function (data) { @@ -597,7 +603,22 @@ $(document).ready(function () { defaultValue: '', inputClass: 'ttl', listClass: 'ttl' - } + }, + disabled: { + title: 'Disabled', + width: '2%', + create: true, + display: displayContent('disabled'), + defaultValue: '', + inputClass: 'disabled', + listClass: 'disabled', + options: function() { + return { + '0': 'false', + '1': 'true', + }; + }, + }, } }, function (data) { data.childTable.jtable('load');