From: Jo-Philipp Wich Date: Fri, 27 Sep 2019 10:53:47 +0000 (+0200) Subject: luci-mod-system: fix rerendering of ssh key list after add/remove X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=355223ecdd9f8b7e19f6d8bf5d726ad94f380677;p=oweals%2Fluci.git luci-mod-system: fix rerendering of ssh key list after add/remove Signed-off-by: Jo-Philipp Wich --- 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 a68cb6b0b..4a8e223ae 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);