From ad05b61dceb676596f61035d1ddec017cee18298 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 27 Sep 2019 12:01:41 +0200 Subject: luci-mod-system: allow deleting all NTP servers Fixes: #3121 Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/resources/view/system/system.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'modules/luci-mod-system') 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 18af222d29..6563bf4638 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'); }; } -- cgit v1.2.3