--- dao/DaoAdresseVedligehold/src/main/webapp/index.html 2016/01/26 21:34:15 2851
+++ dao/DaoAdresseVedligehold/src/main/webapp/index.html 2016/01/31 22:45:03 2891
@@ -47,6 +47,17 @@
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 + "
";
@@ -103,6 +114,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 +160,7 @@
-
Actions
+ Upload File
@@ -146,12 +170,8 @@
-
-
-
+
@@ -171,11 +191,37 @@
-
-
-
+
+
+
+
+
Afstand anden rute
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+