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 += "<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 == "") { |
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 |
|
|