Skip to content

Commit 346e0ef

Browse files
committed
Checking destination_queue is not null or empty before moving a job (dashboard/static/js/views/jobs.js)
1 parent 0ca3475 commit 346e0ef

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

  • mrq/dashboard/static/js/views

mrq/dashboard/static/js/views/jobs.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,14 @@ define(["jquery", "underscore", "views/generic/datatablepage", "models"],functio
226226
} else if (action == "move") {
227227

228228
var queue = prompt("Test");
229-
self.jobaction(evt, {
230-
"id": job_id,
231-
"action": action,
232-
"destination_queue": queue
233-
});
229+
if (queue != null && queue != "")
230+
{
231+
self.jobaction(evt, {
232+
"id": job_id,
233+
"action": action,
234+
"destination_queue": queue
235+
});
236+
}
234237

235238
} else {
236239

0 commit comments

Comments
 (0)