--- dao/DaoAdresseVedligehold/src/main/webapp/index.html 2016/02/03 22:32:05 2910 +++ dao/DaoAdresseVedligehold/src/main/webapp/index.html 2016/02/05 11:01:48 2927 @@ -6,6 +6,15 @@ + + @@ -41,7 +50,12 @@ html += "
"; - html += "

" + entry.description + "

"; + html += "
"; + if (entry.state == "STATE_DONE" || entry.state == "STATE_ABORTED") { + html += ""; + } + html += "

" + entry.description + "

"; + html += "
"; html += "
"; html += entry.detail; @@ -103,6 +117,13 @@ }); + $(document).on('click', '.removetask', function(event) { // Bind future elements + var taskid = $(this).attr('taskid'); + $.get('rest/tasks/remove/' + taskid, function() { + loadTasks(); + }); + }); + $("#file").fileinput({ //'showUpload':false, 'showRemove': false, @@ -134,9 +155,11 @@ alert("Du skal vælge distributør"); return; } + var type = $("#afstand_type").val(); + var url = "rest/commands/distancecalculation/" + dist + "/" + type; - $.get("rest/commands/distancecalculation/" + dist, function() { + $.get(url, function() { loadTasks(); //Force reload of tasks immediately } ); @@ -154,7 +177,7 @@

Dao Adresse Vedligehold

-
+
@@ -222,7 +245,15 @@ + + + +
+