summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-system/htdocs/luci-static/resources/view
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-11-01 12:45:00 +0100
committerJo-Philipp Wich <jo@mein.io>2019-11-01 12:45:00 +0100
commitaf5dc2652eaf213d73c62885664dea7d49421ea0 (patch)
tree71f22fd48cf621ec3893e76fe2c2549136b8af88 /modules/luci-mod-system/htdocs/luci-static/resources/view
parent7d843964711e9e26ff2c6fb97b340afd4a68b179 (diff)
luci-mod-system: flash.js: upon sysupgrade, select reconnect ip by keep state
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-system/htdocs/luci-static/resources/view')
-rw-r--r--modules/luci-mod-system/htdocs/luci-static/resources/view/system/flash.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/flash.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/flash.js
index 43840f4071..440ed9acc8 100644
--- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/flash.js
+++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/flash.js
@@ -299,7 +299,10 @@ return L.view.extend({
/* Currently the sysupgrade rpc call will not return, hence no promise handling */
fs.exec('/sbin/sysupgrade', opts);
- L.ui.awaitReconnect(window.location.host, '192.168.1.1', 'openwrt.lan');
+ if (keep.checked)
+ L.ui.awaitReconnect(window.location.host);
+ else
+ L.ui.awaitReconnect('192.168.1.1', 'openwrt.lan');
},
handleBackupList: function(ev) {