From 6c11237107794d51c816d906b7eb7666fb8e7854 Mon Sep 17 00:00:00 2001 From: Newnius Date: Thu, 25 Jun 2020 11:45:28 +0800 Subject: [PATCH] update --- static/job.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/job.js b/static/job.js index fddfba7..f6b88dd 100755 --- a/static/job.js +++ b/static/job.js @@ -90,7 +90,7 @@ function register_events_job() { console.log(res); $('#form-job-tasks').find('.row').each(function () { - var taskRole = $(this).find('.task-is-ps').eq(0).val(); + var taskRole = parseInt($(this).find('.task-is-ps').eq(0).val()); console.log(taskRole); if ((role === 'PS' && taskRole === 1) || (role === 'Worker' && taskRole === 0)) { $(this).find('.task-cpu').eq(0).val(res['cpu']);