From b8b1ab196fc4a8ecefcd0997b42e515692672cb8 Mon Sep 17 00:00:00 2001 From: chentt <7448203+daydaychen@users.noreply.github.com> Date: Thu, 26 Oct 2023 23:42:33 +0800 Subject: [PATCH] fix pool size value is undefined (#1324) Co-authored-by: chentiantian --- flower/static/js/flower.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flower/static/js/flower.js b/flower/static/js/flower.js index 3924dd2e..6edde42b 100644 --- a/flower/static/js/flower.js +++ b/flower/static/js/flower.js @@ -141,7 +141,7 @@ var flower = (function () { event.stopPropagation(); var workername = $('#workername').text(), - grow_size = $('#pool-size option:selected').html(); + grow_size = $('#pool-size').val(); $.ajax({ type: 'POST', @@ -165,7 +165,7 @@ var flower = (function () { event.stopPropagation(); var workername = $('#workername').text(), - shrink_size = $('#pool-size option:selected').html(); + shrink_size = $('#pool-size').val(); $.ajax({ type: 'POST',