summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-commands/luasrc/view
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-04-09 14:27:00 +0200
committerJo-Philipp Wich <jo@mein.io>2021-04-09 14:29:12 +0200
commitf117b7f1ec3b582aeed524093afc06dd5eb15127 (patch)
tree0ab33df7c3346f3aadf5fc349a8a917ac686f372 /applications/luci-app-commands/luasrc/view
parentc5ff3244e92f267e3b7410b3196615f5fec75051 (diff)
luci-app-commands: use <button> elements
Use <button> instead of <input type=button> elements to fix compatibility with OpenWrt 2020 theme. Ref: https://github.com/openwrt/luci/issues/4972 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-commands/luasrc/view')
-rw-r--r--applications/luci-app-commands/luasrc/view/commands.htm10
1 files changed, 5 insertions, 5 deletions
diff --git a/applications/luci-app-commands/luasrc/view/commands.htm b/applications/luci-app-commands/luasrc/view/commands.htm
index 28b7701faf..ff82eac47a 100644
--- a/applications/luci-app-commands/luasrc/view/commands.htm
+++ b/applications/luci-app-commands/luasrc/view/commands.htm
@@ -109,10 +109,10 @@
{
var prefix = location.protocol + '//' + location.host + '<%=url('command')%>/';
var suffix = (args ? '/' + args : '');
-
+
var link = prefix + id + suffix;
var link_nodownload = prefix + id + "s" + suffix;
-
+
legend.style.display = 'none';
output.parentNode.style.display = 'block';
output.innerHTML = String.format(
@@ -156,10 +156,10 @@
<p><%:Arguments:%> <input type="text" id="<%=command['.name']%>" /></p>
<% end %>
<div>
- <input type="button" value="<%:Run%>" class="cbi-button cbi-button-apply" onclick="command_run('<%=command['.name']%>')" />
- <input type="button" value="<%:Download%>" class="cbi-button cbi-button-download" onclick="command_download('<%=command['.name']%>')" />
+ <button class="cbi-button cbi-button-apply" onclick="command_run('<%=command['.name']%>')"><%:Run%></button>
+ <button class="cbi-button cbi-button-download" onclick="command_download('<%=command['.name']%>')"><%:Download%></button>
<% if command.public == "1" then %>
- <input type="button" value="<%:Link%>" class="cbi-button cbi-button-link" onclick="command_link('<%=command['.name']%>')" />
+ <button class="cbi-button cbi-button-link" onclick="command_link('<%=command['.name']%>')"><%:Link%></button>
<% end %>
</div>
</div>