From: Huangbin Zhan Date: Tue, 12 May 2020 20:13:30 +0000 (+0800) Subject: luci-mod-system: fix button disabled status X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6e9b996c63a532f815dbc81866ec3b312adf8f2d;p=oweals%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 c1e127377..4a1058d0d 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') ]) ]));