luci-mod-admin-full: fix empty SSH-Keys issue 1881/head
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 14 Jun 2018 09:13:08 +0000 (11:13 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Thu, 14 Jun 2018 09:50:55 +0000 (11:50 +0200)
commit0251603f0aa064109138d40d06aa892f49e7abc7
treeec6fc42a26167745b332a0cca3973c590aa88d8a
parentb5a43cf87d3f30e0230cc4f0701de97591af90c7
luci-mod-admin-full: fix empty SSH-Keys issue

If you delete all ssh keys in the textarea then LuCI will rais an error.
So if you added one ssh-key to the textarea and then you want to delete them
again that is not possbile in LuCI.
To fix this remove "rmempty" attribute and add a remove function which will
called if the textarea is empty.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/admin.lua