Skip to content
Snippets Groups Projects
Commit ba082457 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Set max hour base on partition

parent d7c9cd42
No related branches found
No related tags found
No related merge requests found
......@@ -30,10 +30,12 @@ function toggle_gpu_visibility(event) {
const partition = event.target.value;
const cpu_selector = '#batch_connect_session_context_bc_num_slots';
const gpu_selector = '#batch_connect_session_context_bc_num_gpus';
const hour_selector = '#batch_connect_session_context_bc_num_hours';
toggle_visibilty_of_form_group(gpu_selector, table[partition]["max_gpu"] != -1);
set_max_value(cpu_selector, table[partition]["max_cpu"]);
set_max_value(gpu_selector, table[partition]["max_gpu"]);
set_max_value(hour_selector, table[partition]["max_hour"]);
}
function toggle_visibilty_of_form_group(form_id, show) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment