/[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 2908 by torben, Wed Feb 3 18:45:33 2016 UTC revision 2909 by torben, Wed Feb 3 22:30:22 2016 UTC
# Line 60  function loadTasks() { Line 60  function loadTasks() {
60                                  }                                  }
61                          }                          }
62                                                    
63                          html += "<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, 2500);
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.2908  
changed lines
  Added in v.2909

  ViewVC Help
Powered by ViewVC 1.1.20