From 3eff537d5f7eec921d063a85dfefcb2c9b2ba25d Mon Sep 17 00:00:00 2001 From: Newnius Date: Fri, 1 May 2020 12:49:32 +0800 Subject: [PATCH] update --- ajax.php | 1 + job.logic.php | 1 + modals.php | 4 ++-- static/job.js | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ajax.php b/ajax.php index aa8a8c7..b8127cd 100644 --- a/ajax.php +++ b/ajax.php @@ -76,6 +76,7 @@ switch ($action) { $job->set('workspace', cr_get_POST('workspace')); $job->set('priority', cr_get_POST('priority')); $job->set('run_before', cr_get_POST('run_before')); + $job->set('locality', cr_get_POST('locality')); $job->set('tasks', cr_get_POST('tasks')); $res = job_submit($job); break; diff --git a/job.logic.php b/job.logic.php index 488f672..84b0f78 100644 --- a/job.logic.php +++ b/job.logic.php @@ -38,6 +38,7 @@ function job_submit(CRObject $job) $job->set('workspace', $job->get('workspace')); $job->set('group', $job->get('virtual_cluster')); $job->set('priority', $job->getInt('priority')); + $job->set('locality', $job->getInt('locality')); $job->set('run_before', $job->getInt('run_before')); $job->set('created_by', $job->getInt('created_by')); $data['job'] = json_encode($job); diff --git a/modals.php b/modals.php index 13b2fce..1445d34 100755 --- a/modals.php +++ b/modals.php @@ -170,7 +170,7 @@
- +
@@ -192,7 +192,7 @@
- +
diff --git a/static/job.js b/static/job.js index d969c94..3118927 100755 --- a/static/job.js +++ b/static/job.js @@ -44,6 +44,7 @@ function register_events_job() { var cluster = $('#form-job-cluster').val(); var priority = $('#form-job-priority').val(); var run_before = $('#form-job-run-before').val(); + var locality = $('#form-job-locality').val(); if (run_before.length !== 0) { run_before = moment(run_before).unix(); }