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

Update num gpu if more than max

parent 574bf174
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,8 @@ const gpu_part_regex = /pascal|ampere/;
function set_max_value(form_id, value) {
const form_element = $(form_id);
form_element.attr({'max': value});
if (form_element.val() > value)
form_element.val(value)
}
function set_partition_change_handler() {
......
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