From 2d14b2988e0e8c8015fc88456a726455ee9f7ab3 Mon Sep 17 00:00:00 2001 From: kyebyungha Date: Sun, 27 Mar 2022 16:11:20 +0900 Subject: [PATCH] =?UTF-8?q?-=20=EC=9E=85=EB=A0=A5=EA=B0=91=20=EB=B8=94?= =?UTF-8?q?=EB=9F=AD=ED=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/ftl/m/bf_daily_nutrition/include_bottom.ftl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/webapp/WEB-INF/views/ftl/m/bf_daily_nutrition/include_bottom.ftl b/src/main/webapp/WEB-INF/views/ftl/m/bf_daily_nutrition/include_bottom.ftl index ecef8c6..df2fa40 100644 --- a/src/main/webapp/WEB-INF/views/ftl/m/bf_daily_nutrition/include_bottom.ftl +++ b/src/main/webapp/WEB-INF/views/ftl/m/bf_daily_nutrition/include_bottom.ftl @@ -540,6 +540,11 @@ $("#eat_qty").val(this.value); } }); + $("#iptbm, #iptbs, #iptblm, #iptbls, #iptbrm, #iptbrs, #temperature, #y, #m, #d").on("change", function() { + if (this.value < 0) { + $(this).val(0); + } + }); $("#iptbm").on("change", function() { $("#bm").val(this.value);