/[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 2900 by torben, Mon Feb 1 09:39:11 2016 UTC revision 2910 by torben, Wed Feb 3 22:32:05 2016 UTC
# Line 19  Line 19 
19    
20    
21  function loadTasks() {  function loadTasks() {
22          $.get("TaskServlet", function(data) {          $.get("rest/tasks/list", function(data) {
23                  //console.log(data);                  //console.log(data);
24                                    
25                                    
# Line 60  function loadTasks() { Line 60  function loadTasks() {
60                                  }                                  }
61                          }                          }
62                                                    
63                          html += "<br/><div style='font-size: 8px; '>" + entry.state + "</div>";                          var viewlog = "";
64                            if (entry.state == "STATE_RUNNING" || entry.state == "STATE_DONE" || entry.state == "STATE_ABORTED") {
65                                    viewlog = "<span style='float: right'><a href='#' class='viewlog' taskid='" + entry.id+ "'>Log</a></span>";
66                            }
67                            
68                            html += "  <div style='font-size: 8px; '>" + entry.state + viewlog + "</div>";
69                                                    
70                          html += "  </div>"; //panel-body                          html += "  </div>"; //panel-body
71                          html += "</div>"; //panel                          html += "</div>"; //panel
# Line 89  function genUploadExtraData (previewId, Line 94  function genUploadExtraData (previewId,
94    
95  $(document).ready( function() {  $(document).ready( function() {
96          loadTasks();          loadTasks();
97          setInterval(loadTasks, 2500);          setInterval(loadTasks, 5000);
98            
99                    
100            $(document).on('click', '.viewlog', function(event) { // Bind future elements
101                    var taskid = $(this).attr('taskid');
102                    $("#logview").load('rest/tasks/log/' + taskid);
103                    
104            });
105                    
106          $("#file").fileinput({          $("#file").fileinput({
107                  //'showUpload':false,                  //'showUpload':false,
# Line 157  $(document).ready( function() { Line 168  $(document).ready( function() {
168          </div>          </div>
169        </div>        </div>
170                
171        <div class="col-sm-6" id="center" >        <div class="col-sm-6" id="center">
172          b        <pre id="logview">
173          </pre>
174        </div>        </div>
175                
176        <div class="col-sm-3" id="rightCol" >        <div class="col-sm-3" id="rightCol" >

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

  ViewVC Help
Powered by ViewVC 1.1.20