--- dao/DaoAdresseVedligehold/src/main/webapp/index.html 2016/01/30 19:38:37 2889 +++ dao/DaoAdresseVedligehold/src/main/webapp/index.html 2016/01/31 21:56:30 2890 @@ -103,6 +103,19 @@ $('#file').fileinput('upload'); }); + + $("#afstandBtn").click( function(){ + var dist = $("#afstand_distributor").val(); + if (dist == "") { + alert("Du skal vælge distributør"); + return; + } + + + $.get("rest/commands/distancecalculation/" + dist); + + }); + }); @@ -136,7 +149,7 @@