mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-19 20:09:14 +03:00
Merge pull request #80 from nickygerritsen/add-disabled
Add disabled field
This commit is contained in:
commit
22dfbed83d
2 changed files with 23 additions and 1 deletions
|
@ -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
|
||||
|
|
23
index.php
23
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: '<?php echo $defaults['ttl']; ?>',
|
||||
inputClass: 'ttl',
|
||||
listClass: 'ttl'
|
||||
}
|
||||
},
|
||||
disabled: {
|
||||
title: 'Disabled',
|
||||
width: '2%',
|
||||
create: true,
|
||||
display: displayContent('disabled'),
|
||||
defaultValue: '<?php echo $defaults['disabled'] ? 'false' : 'true'; ?>',
|
||||
inputClass: 'disabled',
|
||||
listClass: 'disabled',
|
||||
options: function() {
|
||||
return {
|
||||
'0': 'false',
|
||||
'1': 'true',
|
||||
};
|
||||
},
|
||||
},
|
||||
}
|
||||
}, function (data) {
|
||||
data.childTable.jtable('load');
|
||||
|
|
Loading…
Add table
Reference in a new issue