luci-mod-system: fix button disabled status 4046/head
authorHuangbin Zhan <zhanhb88@gmail.com>
Tue, 12 May 2020 20:13:30 +0000 (04:13 +0800)
committerHuangbin Zhan <zhanhb88@gmail.com>
Tue, 12 May 2020 20:26:59 +0000 (04:26 +0800)
Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
modules/luci-mod-system/htdocs/luci-static/resources/view/system/flash.js

index c1e12737722d17b18fb65ca6957795f2d398a601..4a1058d0d9df647f1f8e8a54f481cb64d15fea40 100644 (file)
@@ -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') ])
                                        ]));