From: Jo-Philipp Wich Date: Wed, 23 Dec 2020 16:11:48 +0000 (+0100) Subject: luci-mod-system: fix reference to undefined variable X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b9c806b0647dd07d9893b4ab1a70da54d40f74da;p=project%2Fluci.git luci-mod-system: fix reference to undefined variable Fixes: 24550446c ("luci-mod-system: fix parsing SSH pubkeys with options") 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 c0edbf4504..9269a69395 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 @@ -106,7 +106,7 @@ var SSHPubkeyDecoder = L.Class.singleton({ function renderKeyItem(pubkey) { return E('div', { class: 'item', - click: isReadonlyView ? null : removeKey, + click: removeKey, 'data-key': pubkey.src }, [ E('strong', pubkey.comment || _('Unnamed key')), E('br'),