summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-mini/luasrc/controller
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-09-06 15:59:18 +0000
committerSteven Barth <steven@midlink.org>2008-09-06 15:59:18 +0000
commit7514604860540ad30bbe82aabc6692f89f301b92 (patch)
treebcf203d29fb6111e2563711770d2ce1476ae5f56 /modules/admin-mini/luasrc/controller
parentf61bd1a78c69e3f492b18fd4ac14873cb009b8ef (diff)
Fixed responsiveness for flashing process
Diffstat (limited to 'modules/admin-mini/luasrc/controller')
-rw-r--r--modules/admin-mini/luasrc/controller/mini/system.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/admin-mini/luasrc/controller/mini/system.lua b/modules/admin-mini/luasrc/controller/mini/system.lua
index c3910a3020..265443bd32 100644
--- a/modules/admin-mini/luasrc/controller/mini/system.lua
+++ b/modules/admin-mini/luasrc/controller/mini/system.lua
@@ -105,7 +105,9 @@ function action_upgrade()
local keepcfg = keep_avail and luci.http.formvalue("keepcfg")
if plat and fname then
- ret = luci.sys.flash(tmpfile, keepcfg and _keep_pattern())
+ ret = function()
+ return luci.sys.flash(tmpfile, keepcfg and _keep_pattern())
+ end
end
luci.template.render("mini/upgrade", {sysupgrade=plat, ret=ret, keep_avail=keep_avail})