summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-system/htdocs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-09-27 12:01:41 +0200
committerJo-Philipp Wich <jo@mein.io>2019-09-27 12:02:08 +0200
commitad05b61dceb676596f61035d1ddec017cee18298 (patch)
tree1854c8fe83de64d78009f2e8d7203bb661675f83 /modules/luci-mod-system/htdocs
parent111fdcef7fe75a2b8ae8373982c53bfad0e81375 (diff)
luci-mod-system: allow deleting all NTP servers
Fixes: #3121 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-system/htdocs')
-rw-r--r--modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js
index 18af222d2..6563bf463 100644
--- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js
+++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js
@@ -270,11 +270,8 @@ return L.view.extend({
o.datatype = 'host(0)';
o.ucisection = 'ntp';
o.depends('enabled', '1');
- o.remove = function() {}; // retain server list even if disabled
o.load = function(section_id) {
- return uci.get('system', 'ntp')
- ? uci.get('system', 'ntp', 'server')
- : default_servers;
+ return uci.get('system', 'ntp', 'server');
};
}