From 355223ecdd9f8b7e19f6d8bf5d726ad94f380677 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 27 Sep 2019 12:53:47 +0200 Subject: [PATCH] luci-mod-system: fix rerendering of ssh key list after add/remove Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/resources/view/system/sshkeys.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js index a68cb6b0bf..4a8e223aed 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js @@ -104,7 +104,7 @@ var callFileWrite = rpc.declare({ }); function renderKeys(keys) { - var list = document.querySelector('.cbi-dynlist[name="sshkeys"]'); + var list = document.querySelector('.cbi-dynlist'); while (!matchesElem(list.firstElementChild, '.add-item')) list.removeChild(list.firstElementChild); -- 2.30.2