treewide: correct L.resource usage syntax
authorPaul Donald <newtwen+github@gmail.com>
Mon, 23 Dec 2024 18:04:11 +0000 (18:04 +0000)
committerPaul Donald <newtwen+github@gmail.com>
Mon, 23 Dec 2024 18:04:11 +0000 (18:04 +0000)
The apparently correct usage is not to pass an array (though that is now
checked). Make usage consistent to {...string}.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
applications/luci-app-alist/htdocs/luci-static/resources/view/alist/log.js
applications/luci-app-aria2/htdocs/luci-static/resources/view/aria2/log.js
applications/luci-app-v2raya/htdocs/luci-static/resources/view/v2raya/log.js

index f300abef9c1f3c26f8f612966e107c2121ae7bab..ccc80163cabf909b479f45b3790c3375af642fce 100644 (file)
@@ -26,7 +26,7 @@ return view.extend({
 
                var log_textarea = E('div', { 'id': 'log_textarea' },
                        E('img', {
-                               'src': L.resource(['icons/loading.gif']),
+                               'src': L.resource('icons/loading.gif'),
                                'alt': _('Loading...'),
                                'style': 'vertical-align:middle'
                        }, _('Collecting data...'))
index 075b110d591a5a53bee2b99e3f790f7e62e66043..c1f0856576159fa0b6a9fd71c6a27d4e6193878f 100644 (file)
@@ -45,7 +45,7 @@ return view.extend({
        render: function() {
                var log_textarea = E('div', { 'id': 'log_textarea' },
                        E('img', {
-                               'src': L.resource(['icons/loading.gif']),
+                               'src': L.resource('icons/loading.gif'),
                                'alt': _('Loading'),
                                'style': 'vertical-align:middle'
                        }, _('Collecting data...'))
index b614f3c8a5357c340489dabd50db26afa5c703c2..9422c133feb09458db01f6f5dfc24342d829a51e 100644 (file)
@@ -24,7 +24,7 @@ return view.extend({
 
                var log_textarea = E('div', { 'id': 'log_textarea' },
                        E('img', {
-                               'src': L.resource(['icons/loading.gif']),
+                               'src': L.resource('icons/loading.gif'),
                                'alt': _('Loading…'),
                                'style': 'vertical-align:middle'
                        }, _('Collecting data…'))