luci-mod-system: fix rerendering of ssh key list after add/remove
authorJo-Philipp Wich <jo@mein.io>
Fri, 27 Sep 2019 10:53:47 +0000 (12:53 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 27 Sep 2019 10:53:47 +0000 (12:53 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js

index a68cb6b0bf800ce15885fe1c2a701963f7539f0e..4a8e223aedb04a5d767a3d691e56cf505c68ec3b 100644 (file)
@@ -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);