/[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 2923 by torben, Thu Feb 4 22:00:00 2016 UTC revision 2928 by torben, Fri Feb 5 11:09:02 2016 UTC
# Line 51  function loadTasks() { Line 51  function loadTasks() {
51                                                    
52                          html += "<div class='panel " + pclass + "'>";                          html += "<div class='panel " + pclass + "'>";
53                          html += "<div class='panel-heading'>";                          html += "<div class='panel-heading'>";
54                          if (entry.state == "STATE_DONE" || entry.state == "STATE_ABORTED") {                          if (entry.state == "STATE_DONE" || entry.state == "STATE_ABORTED" || entry.state ==  "STATE_QUEUED") {
55                                  html += "<button type='button' class='close removetask' aria-label='Close' taskid='" + entry.id+ "'><span aria-hidden='true'>&times;</span></button>";                                  html += "<button type='button' class='close removetask' aria-label='Close' taskid='" + entry.id+ "'><span aria-hidden='true'>&times;</span></button>";
56                          }                          }
57                          html += "<h4 class='panel-title'>" + entry.description + "</h4>";                          html += "<h4 class='panel-title'>" + entry.description + "</h4>";
# Line 155  $(document).ready( function() { Line 155  $(document).ready( function() {
155                          alert("Du skal vælge distributør");                          alert("Du skal vælge distributør");
156                          return;                          return;
157                  }                  }
158                    var type = $("#afstand_type").val();
159                    var url = "rest/commands/distancecalculation/" + dist + "/" + type;
160                                    
161                                    
162                  $.get("rest/commands/distancecalculation/" + dist, function() {                  $.get(url, function() {
163                          loadTasks(); //Force reload of tasks immediately                          loadTasks(); //Force reload of tasks immediately
164                  } );                  } );
165                                    
# Line 243  $(document).ready( function() { Line 245  $(document).ready( function() {
245                              <option>BK</option>                              <option>BK</option>
246                              <option>DAO</option>                              <option>DAO</option>
247                            </select>                            </select>
248    
249                              
250                              <label for="type">Type:</label>
251                              <select class="form-control" id="afstand_type" name="afstand_type">
252                                <option>Incremental</option>
253                                <option>Full</option>                          
254                              </select>
255                            <br>                            <br>
256    
257                                                        
258                            <button class="btn btn-primary" id="afstandBtn">Beregn</button>                            <button class="btn btn-primary" id="afstandBtn">Beregn</button>
259        

Legend:
Removed from v.2923  
changed lines
  Added in v.2928

  ViewVC Help
Powered by ViewVC 1.1.20