luci-app-statistics: clean and fix plugin configurations
[project/luci.git] / applications / luci-app-statistics / htdocs / luci-static / resources / view / statistics / plugins / disk.js
index a2664d4eb28da6ea6e9f7197bc1a0dc0bc4cb629..c737a7dbe21ce4f566c0ca46bec66fbb5a82e095 100644 (file)
@@ -10,11 +10,9 @@ return L.Class.extend({
                var o;
 
                o = s.option(form.Flag, 'enable', _('Enable this plugin'));
-               o.default = '0';
 
                o = s.option(form.DynamicList, 'Disks', _('Monitor disks and partitions'),
                        _('When none selected, all disks will be monitored.'));
-               o.rmempty = true;
                o.depends('enable', '1');
                o.load = function(section_id) {
                        return fs.trimmed('/proc/partitions').then(L.bind(function(str) {
@@ -31,7 +29,6 @@ return L.Class.extend({
                };
 
                o = s.option(form.Flag, 'IgnoreSelected', _('Monitor all except specified'));
-               o.default = '0';
                o.depends('enable', '1');
        },