+ '<p>TYPE : <strong>' +jobType+ '</strong></p>'
+ '<p>OS : <strong>' + os + '</strong></p>'
+ '<p>USER : <strong>' +userName+ '</strong></p>'
- + '<p>TIME: <strong>' +startTime+ ' ~ '+endTime+ '</strong></p>'
- + '<p class="ui-li-aside"><strong>' +jobStatus+ '</strong></p>'
- + '</a></li>';
+ + '<p>TIME: <strong>' +startTime+ ' ~ '+endTime+ '</strong></p>';
+ if(jobStatus == "ERROR" || jobStatus == "CANCELED") {
+ li = li + '<p class="ui-li-aside"><strong><font color="red">' +jobStatus+ '</strong></p>'
+ } else if(jobStatus == "JUST_CREATED" || jobStatus == "WAITING"
+ || jobStatus == "WORKING" || jobStatus == "REMOTE_WORKING"
+ || jobStatus == "PENDING") {
+ li = li + '<p class="ui-li-aside"><strong><font color="blue">' +jobStatus+ '</strong></p>'
+ } else if(jobStatus == "FINISHED") {
+ li = li + '<p class="ui-li-aside"><strong>' +jobStatus+ '</strong></p>'
+ } else {
+ li = li + '<p class="ui-li-aside"><strong>' +jobStatus+ '</strong></p>'
+ }
+
+ li = li + '</a></li>';
}
else if(jobAttribute == "MULTI")
{
li = '<li data-role="list-divider">' +id+ ' ' +jobType+ '</li>'
+ '<li><a href=log.html?jobid='+id+' class="logWindow" data-ajax="false">'
+ '<p>USER : <strong>' +userName+ '</strong></p>'
- + '<p>TIME: <strong>' +startTime+ ' ~ '+endTime+ '</strong></p>'
- + '<p class="ui-li-aside"><strong>' +jobStatus+ '</strong></p>'
- + '</a></li>';
+ + '<p>TIME: <strong>' +startTime+ ' ~ '+endTime+ '</strong></p>';
+ if(jobStatus.toUpperCase() == "ERROR" || jobStatus.toUpperCase() == "CANCELED") {
+ li = li + '<p class="ui-li-aside"><strong><font color="red">' +jobStatus+ '</strong></p>'
+ } else {
+ li = li + '<p class="ui-li-aside"><strong>' +jobStatus+ '</strong></p>'
+ }
+
+ li = li + '</a></li>';
}
else if(jobAttribute == "CHILD")
{
+ '<p>ID : <strong>' +id+ '</strong></p>'
+ '<p>TYPE : <strong>' +jobType+ '</strong></p>'
+ '<p>OS : <strong>' +os+ '</strong></p>'
- + '<p>TIME: <strong>' +startTime+ ' ~ '+endTime+ '</strong></p>'
- + '<p class="ui-li-aside"><strong>' +jobStatus+ '</strong></p>'
- + '</a></li>';
+ + '<p>TIME: <strong>' +startTime+ ' ~ '+endTime+ '</strong></p>';
+ if(jobStatus.toUpperCase() == "ERROR" || jobStatus.toUpperCase() == "CANCELED") {
+ li = li + '<p class="ui-li-aside"><strong><font color="red">' +jobStatus+ '</strong></p>'
+ } else {
+ li = li + '<p class="ui-li-aside"><strong>' +jobStatus+ '</strong></p>'
+ }
+
+ li = li + '</a></li>';
}
lastJobId = id;
location:0, // determines whether the address bar is displayed {1 (YES) or 0 (NO)}.
menubar:0, // determines whether the menu bar is displayed {1 (YES) or 0 (NO)}.
resizable:0, // whether the window can be resized {1 (YES) or 0 (NO)}. Can also be overloaded using resizable.
- scrollbars:0, // determines whether scrollbars appear on the window {1 (YES) or 0 (NO)}.
+ scrollbars:1, // determines whether scrollbars appear on the window {1 (YES) or 0 (NO)}.
status:0, // whether a status line appears at the bottom of the window {1 (YES) or 0 (NO)}.
width:500, // sets the width in pixels of the window.
windowName:null, // name of window set from the name attribute of the element that invokes the click