luci-app-attendedsysupgrade: refactor and format
authorPaul Spooren <mail@aparcar.org>
Sun, 24 Feb 2019 21:24:24 +0000 (22:24 +0100)
committerPaul Spooren <mail@aparcar.org>
Mon, 18 Mar 2019 11:25:24 +0000 (12:25 +0100)
commit071e540e37d4115afcd3e4169ae2dd5a7863401f
tree90b62bc8989fecf2aea06a7d821257331f9448d4
parent76cf6533d0f9e743821cc06a2bd36ccfb6b78051
luci-app-attendedsysupgrade: refactor and format

* Reuse `request_dict` between requests.
* used vim Autoformat plugin to make the javascript code nice.
* add board_name as it eventually replaces board/model in requests

Signed-off-by: Paul Spooren <mail@aparcar.org>
applications/luci-app-attendedsysupgrade/root/www/luci-static/resources/attendedsysupgrade.js