/[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 2890 by torben, Sun Jan 31 21:56:30 2016 UTC revision 2900 by torben, Mon Feb 1 09:39:11 2016 UTC
# Line 42  function loadTasks() { Line 42  function loadTasks() {
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'><h4 class='panel-title'>" + entry.description + "</h4></div>";
45                            html += "  <div class='panel-body'>";
46    
47                          html += entry.detail;                          html += entry.detail;
48                                                    
49                          if (entry.state == "STATE_ABORTED")                          if (entry.state == "STATE_ABORTED")
50                                  html += "<br><div style='color: red'>" + entry.errorMessage + "</div>";                                  html += "<br><div style='color: red'>" + entry.errorMessage + "</div>";
51                                    
52                            if (entry.state == "STATE_RUNNING") {
53                                    if (entry.percentCompleted >= 0) {
54                                            var percent = entry.percentCompleted.toFixed(2);
55                                            html += "<div class='progress'>";
56                                            html += "<div class='progress-bar' role='progressbar' aria-valuenow='" + percent + "' aria-valuemin='0' aria-valuemax='100' style='width:" + percent + "%'> " ;
57                                            html +=  percent + "%";
58                                            html += " </div>";
59                                            html += "</div>";
60                                    }
61                            }
62                                                    
63                          html += "<br/><div style='font-size: 8px; margin: 7px;'>" + entry.state + "</div>";                          html += "<br/><div style='font-size: 8px; '>" + entry.state + "</div>";
64                                                    
65                          html += "</div>";                          html += "  </div>"; //panel-body
66                            html += "</div>"; //panel
67                                                    
68                  });                  });
69                  if (html == "") {                  if (html == "") {
# Line 112  $(document).ready( function() { Line 125  $(document).ready( function() {
125                  }                  }
126                                    
127                                    
128                  $.get("rest/commands/distancecalculation/" + dist);                  $.get("rest/commands/distancecalculation/" + dist, function() {
129                            loadTasks(); //Force reload of tasks immediately
130                    } );
131                                    
132          });          });
133                    

Legend:
Removed from v.2890  
changed lines
  Added in v.2900

  ViewVC Help
Powered by ViewVC 1.1.20