--- dao/DaoAdresseVedligehold/src/main/webapp/index.html 2016/01/25 21:43:59 2844 +++ dao/DaoAdresseVedligehold/src/main/webapp/index.html 2016/02/01 09:42:37 2901 @@ -42,15 +42,28 @@ html += "
"; html += "

" + entry.description + "

"; + html += "
"; html += entry.detail; if (entry.state == "STATE_ABORTED") html += "
" + entry.errorMessage + "
"; + + if (entry.state == "STATE_RUNNING") { + if (entry.percentCompleted >= 0) { + var percent = entry.percentCompleted.toFixed(2); + html += "
"; + html += "
" ; + html += percent + "%"; + html += "
"; + html += "
"; + } + } - html += "
" + entry.state + "
"; + html += "
" + entry.state + "
"; - html += "
"; + html += "
"; //panel-body + html += ""; //panel }); if (html == "") { @@ -103,6 +116,21 @@ $('#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, function() { + loadTasks(); //Force reload of tasks immediately + } ); + + }); + }); @@ -136,7 +164,7 @@
-

Actions

+

Upload File

@@ -146,11 +174,8 @@ - @@ -170,11 +195,37 @@
-
-
- + + +
+
+

Afstand anden rute

+
+
+ + + + +
+ + + + +
+
+ + + + + - + + +