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

device configuration firefox support fix

parent 661733c5
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<h3 class="mb-0">Device Configuration</h3> <h3 class="mb-0">Device Configuration</h3>
</div> </div>
<div class="card-body"> <div class="card-body">
<form id="confform" onsubmit="onsub()"> <form id="confform" onsubmit="return onsub(event);">
<div class="form-group"> <div class="form-group">
<label>Config ID:</label><br> <label>Config ID:</label><br>
<input type="number" min="0" max="255" size="3" class="form-control" id="confid" name="confid" required><br> <input type="number" min="0" max="255" size="3" class="form-control" id="confid" name="confid" required><br>
...@@ -90,7 +90,8 @@ ...@@ -90,7 +90,8 @@
{% block script %} {% block script %}
<script type="text/javascript"> <script type="text/javascript">
function onsub() { function onsub(e) {
e.preventDefault();
$.ajax({ $.ajax({
url:"/administration/{{ user }}/application/{{ app[1] }}/device/{{ dev[1] }}/configure", url:"/administration/{{ user }}/application/{{ app[1] }}/device/{{ dev[1] }}/configure",
type:"POST", type:"POST",
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<h3 class="mb-0">Device Configuration</h3> <h3 class="mb-0">Device Configuration</h3>
</div> </div>
<div class="card-body"> <div class="card-body">
<form id="confform" onsubmit="onsub()"> <form id="confform" onsubmit="return onsub(event);">
<div class="form-group"> <div class="form-group">
<label>Config ID:</label><br> <label>Config ID:</label><br>
<input type="number" min="0" max="255" size="3" class="form-control" id="confid" name="confid" required><br> <input type="number" min="0" max="255" size="3" class="form-control" id="confid" name="confid" required><br>
...@@ -83,7 +83,8 @@ ...@@ -83,7 +83,8 @@
{% block script %} {% block script %}
<script type="text/javascript"> <script type="text/javascript">
function onsub() { function onsub(e) {
e.preventDefault();
$.ajax({ $.ajax({
url:"/application/{{ app[1] }}/device/{{ dev[1] }}/configure", url:"/application/{{ app[1] }}/device/{{ dev[1] }}/configure",
type:"POST", 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