From: Huangbin Zhan Date: Tue, 12 May 2020 20:13:30 +0000 (+0800) Subject: luci-mod-system: fix button disabled status X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=6e9b996c63a532f815dbc81866ec3b312adf8f2d;p=project%2Fluci.git luci-mod-system: fix button disabled status Signed-off-by: Huangbin Zhan --- 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 c1e1273772..4a1058d0d9 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 @@ -426,7 +426,7 @@ return view.extend({ E('button', { 'class': 'cbi-button cbi-button-save', 'click': ui.createHandlerFn(view, 'handleBackupSave', this.map), - 'disabled': isReadonlyView + 'disabled': isReadonlyView || null }, [ _('Save') ]) ]));