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>
(cherry picked from commit f117b7f1ec
)
This commit is contained in:
parent
6137c9ff33
commit
99a089f81b
1 changed files with 5 additions and 5 deletions
|
@ -109,10 +109,10 @@
|
||||||
{
|
{
|
||||||
var prefix = location.protocol + '//' + location.host + '<%=url('command')%>/';
|
var prefix = location.protocol + '//' + location.host + '<%=url('command')%>/';
|
||||||
var suffix = (args ? '/' + args : '');
|
var suffix = (args ? '/' + args : '');
|
||||||
|
|
||||||
var link = prefix + id + suffix;
|
var link = prefix + id + suffix;
|
||||||
var link_nodownload = prefix + id + "s" + suffix;
|
var link_nodownload = prefix + id + "s" + suffix;
|
||||||
|
|
||||||
legend.style.display = 'none';
|
legend.style.display = 'none';
|
||||||
output.parentNode.style.display = 'block';
|
output.parentNode.style.display = 'block';
|
||||||
output.innerHTML = String.format(
|
output.innerHTML = String.format(
|
||||||
|
@ -156,10 +156,10 @@
|
||||||
<p><%:Arguments:%> <input type="text" id="<%=command['.name']%>" /></p>
|
<p><%:Arguments:%> <input type="text" id="<%=command['.name']%>" /></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
<div>
|
<div>
|
||||||
<input type="button" value="<%:Run%>" class="cbi-button cbi-button-apply" onclick="command_run('<%=command['.name']%>')" />
|
<button class="cbi-button cbi-button-apply" onclick="command_run('<%=command['.name']%>')"><%:Run%></button>
|
||||||
<input type="button" value="<%:Download%>" class="cbi-button cbi-button-download" onclick="command_download('<%=command['.name']%>')" />
|
<button class="cbi-button cbi-button-download" onclick="command_download('<%=command['.name']%>')"><%:Download%></button>
|
||||||
<% if command.public == "1" then %>
|
<% 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 %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue