Commit 5f1670bf authored by Vladislav Rykov's avatar Vladislav Rykov
Browse files

device configuration firefox support fix

parent 661733c5
......@@ -32,7 +32,7 @@
<h3 class="mb-0">Device Configuration</h3>
</div>
<div class="card-body">
<form id="confform" onsubmit="onsub()">
<form id="confform" onsubmit="return onsub(event);">
<div class="form-group">
<label>Config ID:</label><br>
<input type="number" min="0" max="255" size="3" class="form-control" id="confid" name="confid" required><br>
......@@ -90,7 +90,8 @@
{% block script %}
<script type="text/javascript">
function onsub() {
function onsub(e) {
e.preventDefault();
$.ajax({
url:"/administration/{{ user }}/application/{{ app[1] }}/device/{{ dev[1] }}/configure",
type:"POST",
......
......@@ -25,7 +25,7 @@
<h3 class="mb-0">Device Configuration</h3>
</div>
<div class="card-body">
<form id="confform" onsubmit="onsub()">
<form id="confform" onsubmit="return onsub(event);">
<div class="form-group">
<label>Config ID:</label><br>
<input type="number" min="0" max="255" size="3" class="form-control" id="confid" name="confid" required><br>
......@@ -83,7 +83,8 @@
{% block script %}
<script type="text/javascript">
function onsub() {
function onsub(e) {
e.preventDefault();
$.ajax({
url:"/application/{{ app[1] }}/device/{{ dev[1] }}/configure",
type:"POST",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment