summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-system/htdocs/luci-static
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-09-27 12:53:47 +0200
committerJo-Philipp Wich <jo@mein.io>2019-09-27 12:53:47 +0200
commit355223ecdd9f8b7e19f6d8bf5d726ad94f380677 (patch)
tree5ac7834cd8723827352cc39b42873cee98c3e53f /modules/luci-mod-system/htdocs/luci-static
parentad05b61dceb676596f61035d1ddec017cee18298 (diff)
luci-mod-system: fix rerendering of ssh key list after add/remove
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-system/htdocs/luci-static')
-rw-r--r--modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js2
1 files changed, 1 insertions, 1 deletions
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);