/[projects]/dao/DaoAdresseVedligehold/src/main/webapp/index.html
ViewVC logotype

Diff of /dao/DaoAdresseVedligehold/src/main/webapp/index.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2917 by torben, Thu Feb 4 14:21:30 2016 UTC revision 2918 by torben, Thu Feb 4 14:40:36 2016 UTC
# Line 41  function loadTasks() { Line 41  function loadTasks() {
41                                                    
42                                                    
43                          html += "<div class='panel " + pclass + "'>";                          html += "<div class='panel " + pclass + "'>";
44                          html += "<div class='panel-heading'><h4 class='panel-title'>" + entry.description + "</h4></div>";                          html += "<div class='panel-heading'>";
45                            if (entry.state == "STATE_DONE" || entry.state == "STATE_ABORTED") {
46                                    html += "<button type='button' class='close removetask' aria-label='Close' taskid='" + entry.id+ "'><span aria-hidden='true'>&times;</span></button>";
47                            }
48                            html += "<h4 class='panel-title'>" + entry.description + "</h4>";
49                            html += "</div>";
50                          html += "  <div class='panel-body'>";                          html += "  <div class='panel-body'>";
51    
52                          html += entry.detail;                          html += entry.detail;
# Line 103  $(document).ready( function() { Line 108  $(document).ready( function() {
108                                    
109          });          });
110                    
111            $(document).on('click', '.removetask', function(event) { // Bind future elements
112                    var taskid = $(this).attr('taskid');
113                    $.get('rest/tasks/remove/' + taskid, function() {
114                            loadTasks();
115                    });            
116            });
117            
118          $("#file").fileinput({          $("#file").fileinput({
119                  //'showUpload':false,                  //'showUpload':false,
120                  'showRemove': false,                              'showRemove': false,            

Legend:
Removed from v.2917  
changed lines
  Added in v.2918

  ViewVC Help
Powered by ViewVC 1.1.20