luci-app-filemanager: correctness fixes
authorPaul Donald <redacted>
Fri, 22 May 2026 11:01:41 +0000 (14:01 +0300)
committerPaul Donald <redacted>
Wed, 27 May 2026 12:49:45 +0000 (15:49 +0300)
Signed-off-by: Paul Donald <redacted>
applications/luci-app-filemanager/htdocs/luci-static/resources/view/system/filemanager.js

index ef9576df032879bdbb6893302e07c9641b9a650c..b9e4d6f169cd966afd079d61c023ea2f5390a97a 100644 (file)
@@ -944,7 +944,7 @@ return view.extend({
                                                                        E('input', {
                                                                                'type': 'text',
                                                                                'id': 'columnWidths-input',
-                                                                               'value': Object.values(config.columnWidths).join(''),
+                                                                               'value': Object.entries(config.columnWidths).map(([k,v]) => k+':'+v).join(','),
                                                                                'style': 'width:100%; margin-bottom:10px;'
                                                                        })
                                                                ]),
@@ -953,7 +953,7 @@ return view.extend({
                                                                        E('input', {
                                                                                'type': 'text',
                                                                                'id': 'columnMinWidths-input',
-                                                                               'value': Object.values(config.columnMinWidths).join(''),
+                                                                               'value': Object.entries(config.columnMinWidths).map(([k,v]) => k+':'+v).join(','),
                                                                                'style': 'width:100%; margin-bottom:10px;'
                                                                        })
                                                                ]),
@@ -962,7 +962,7 @@ return view.extend({
                                                                        E('input', {
                                                                                'type': 'text',
                                                                                'id': 'columnMaxWidths-input',
-                                                                               'value': Object.values(config.columnMaxWidths).join(''),
+                                                                               'value': Object.entries(config.columnMaxWidths).map(([k,v]) => k+':'+v).join(','),
                                                                                'style': 'width:100%; margin-bottom:10px;'
                                                                        })
                                                                ]),
git clone https://git.99rst.org/PROJECT