--- dao/DaoAdresseVedligehold/src/main/webapp/index.html 2016/02/04 14:21:30 2917
+++ dao/DaoAdresseVedligehold/src/main/webapp/index.html 2016/02/04 14:40:36 2918
@@ -41,7 +41,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 +108,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,