From: Paul Donald Date: Mon, 23 Dec 2024 18:04:11 +0000 (+0000) Subject: treewide: correct L.resource usage syntax X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7cb2f6584b96d8bbcfa4846a88731d9bc521bd60;p=project%2Fluci.git treewide: correct L.resource usage syntax 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 --- diff --git a/applications/luci-app-alist/htdocs/luci-static/resources/view/alist/log.js b/applications/luci-app-alist/htdocs/luci-static/resources/view/alist/log.js index f300abef9c..ccc80163ca 100644 --- a/applications/luci-app-alist/htdocs/luci-static/resources/view/alist/log.js +++ b/applications/luci-app-alist/htdocs/luci-static/resources/view/alist/log.js @@ -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...')) diff --git a/applications/luci-app-aria2/htdocs/luci-static/resources/view/aria2/log.js b/applications/luci-app-aria2/htdocs/luci-static/resources/view/aria2/log.js index 075b110d59..c1f0856576 100644 --- a/applications/luci-app-aria2/htdocs/luci-static/resources/view/aria2/log.js +++ b/applications/luci-app-aria2/htdocs/luci-static/resources/view/aria2/log.js @@ -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...')) diff --git a/applications/luci-app-v2raya/htdocs/luci-static/resources/view/v2raya/log.js b/applications/luci-app-v2raya/htdocs/luci-static/resources/view/v2raya/log.js index b614f3c8a5..9422c133fe 100644 --- a/applications/luci-app-v2raya/htdocs/luci-static/resources/view/v2raya/log.js +++ b/applications/luci-app-v2raya/htdocs/luci-static/resources/view/v2raya/log.js @@ -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…'))