Commit 0bf8fc43 authored by Daniel Smith's avatar Daniel Smith

Fix calls to jobFormatter

parent ebd86dc5
......@@ -370,7 +370,7 @@ function serveHomePage(req, res) {
}
if (globals.queuedJobs.length != 0) {
view.queuedJobs += "<h4>Queued:</h4><ul>";
toolbox.addJobRecursive(view.queuedJobs, globals.queuedJobs.slice().reverse(), 0, (formatted) => {
toolbox.addJobRecursive(view.queuedJobs, globals.queuedJobs.slice().reverse(), 0, globals.hosts, (formatted) => {
view.queuedJobs = formatted;
view.queuedJobs += "</ul></br>";
readyChecklist.localQueue = true;
......@@ -392,7 +392,7 @@ function serveHomePage(req, res) {
// Only display remote running jobs if there are any
if (globals.remoteRunningJobs.length != 0) {
view.remoteJobs += "<h4>Running:</h4><ul>";
toolbox.addJobRecursive(view.remoteJobs, globals.remoteRunningJobs.slice().reverse(), 0, (formatted) => {
toolbox.addJobRecursive(view.remoteJobs, globals.remoteRunningJobs.slice().reverse(), 0, globals.hosts, (formatted) => {
view.remoteJobs = formatted;
view.remoteJobs += "</ul></br>";
readyChecklist.remoteJobs = true;
......@@ -407,7 +407,7 @@ function serveHomePage(req, res) {
// Only display remote queued jobs if there are any
if (globals.remoteQueuedJobs.length != 0) {
view.remoteQueuedJobs = "<h4>Queued:</h4><ul>";
toolbox.addJobRecursive(view.remoteQueuedJobs, globals.remoteQueuedJobs.slice().reverse(), 0, (formatted) => {
toolbox.addJobRecursive(view.remoteQueuedJobs, globals.remoteQueuedJobs.slice().reverse(), 0, globals.hosts, (formatted) => {
view.remoteQueuedJobs = formatted;
view.remoteQueuedJobs += "</ul></br>";
readyChecklist.remoteQueue = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment