155 |
alert("Du skal vælge distributør"); |
alert("Du skal vælge distributør"); |
156 |
return; |
return; |
157 |
} |
} |
158 |
|
var type = $("#afstand_type").val(); |
159 |
|
var url = "rest/commands/distancecalculation/" + dist + "/" + type; |
160 |
|
|
161 |
|
|
162 |
$.get("rest/commands/distancecalculation/" + dist, function() { |
$.get(url, function() { |
163 |
loadTasks(); //Force reload of tasks immediately |
loadTasks(); //Force reload of tasks immediately |
164 |
} ); |
} ); |
165 |
|
|
245 |
<option>BK</option> |
<option>BK</option> |
246 |
<option>DAO</option> |
<option>DAO</option> |
247 |
</select> |
</select> |
248 |
|
|
249 |
|
|
250 |
|
<label for="type">Type:</label> |
251 |
|
<select class="form-control" id="afstand_type" name="afstand_type"> |
252 |
|
<option>Incremental</option> |
253 |
|
<option>Full</option> |
254 |
|
</select> |
255 |
<br> |
<br> |
256 |
|
|
257 |
|
|
258 |
<button class="btn btn-primary" id="afstandBtn">Beregn</button> |
<button class="btn btn-primary" id="afstandBtn">Beregn</button> |
259 |
|
|