mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-30 09:47:17 +00:00
Added msgs when queues or feed is not running/coming
This commit is contained in:
parent
5a4ea734a2
commit
91678179fd
1 changed files with 34 additions and 20 deletions
|
@ -219,6 +219,19 @@ function create_queue_table() {
|
||||||
tr.appendChild(th);
|
tr.appendChild(th);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((glob_tabvar.row1).length == 0) {
|
||||||
|
var tr = document.createElement('TR');
|
||||||
|
var td = document.createElement('TD');
|
||||||
|
var td2 = document.createElement('TD');
|
||||||
|
td.appendChild(document.createTextNode("No running queues"));
|
||||||
|
td2.appendChild(document.createTextNode("Or no feed"));
|
||||||
|
td.className += " danger";
|
||||||
|
td2.className += " danger";
|
||||||
|
tr.appendChild(td);
|
||||||
|
tr.appendChild(td2);
|
||||||
|
tableBody.appendChild(tr);
|
||||||
|
}
|
||||||
|
else {
|
||||||
for(i = 0; i < (glob_tabvar.row1).length;i++){
|
for(i = 0; i < (glob_tabvar.row1).length;i++){
|
||||||
var tr = document.createElement('TR')
|
var tr = document.createElement('TR')
|
||||||
for(j = 0; j < 2; j++){
|
for(j = 0; j < 2; j++){
|
||||||
|
@ -241,6 +254,7 @@ function create_queue_table() {
|
||||||
tr.className += " success";
|
tr.className += " success";
|
||||||
tableBody.appendChild(tr);
|
tableBody.appendChild(tr);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Tablediv.appendChild(table);
|
Tablediv.appendChild(table);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue