diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-09-27 12:53:47 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-09-27 12:53:47 +0200 |
commit | 355223ecdd9f8b7e19f6d8bf5d726ad94f380677 (patch) | |
tree | 5ac7834cd8723827352cc39b42873cee98c3e53f /modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js | |
parent | ad05b61dceb676596f61035d1ddec017cee18298 (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/resources/view/system/sshkeys.js')
-rw-r--r-- | modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js | 2 |
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 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); |