--- dao/DaoAdresseVedligehold/src/main/webapp/index.html 2016/01/31 21:56:30 2890
+++ dao/DaoAdresseVedligehold/src/main/webapp/index.html 2016/02/01 07:30:14 2895
@@ -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 + "
";
@@ -112,7 +123,9 @@
}
- $.get("rest/commands/distancecalculation/" + dist);
+ $.get("rest/commands/distancecalculation/" + dist, function() {
+ loadTasks(); //Force reload of tasks immediately
+ } );
});