From 1ec30e60ca5bd6501ced6e62817a622c9ee952d3 Mon Sep 17 00:00:00 2001 From: Abel Coronado Date: Thu, 26 Apr 2018 19:22:30 +0200 Subject: [PATCH] B #1978: Changing overcommitment on a host updates other hosts too (#2037) --- src/sunstone/public/app/tabs/hosts-tab/panels/info.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sunstone/public/app/tabs/hosts-tab/panels/info.js b/src/sunstone/public/app/tabs/hosts-tab/panels/info.js index 80ca31efa5..7697a635b0 100644 --- a/src/sunstone/public/app/tabs/hosts-tab/panels/info.js +++ b/src/sunstone/public/app/tabs/hosts-tab/panels/info.js @@ -200,7 +200,7 @@ define(function(require) { } //.off and .on prevent multiple clicks events - $(document).off("click", "#update_reserved_hosts").on("click", ".update_reserved", function(){ + $(context).off("click", "#update_reserved_hosts").on("click", "#update_reserved_hosts", function(){ $("#update_reserved_hosts", context).prop("disabled", true); var reservedCPU = parseInt($("#textInput_reserved_cpu_hosts", context).val()); var CPU = parseInt(that.element.HOST_SHARE.FREE_CPU); @@ -221,7 +221,7 @@ define(function(require) { $("#change_bar_cpu_hosts", context).on("input", function(){ changeColorInputCPU(that.element.HOST_SHARE.TOTAL_CPU); - $("#textInput_reserved_cpu_hosts", context).val($("#change_bar_cpu_hosts", context).val()); + $("#textInput_reserved_cpu_hosts", context).val($("#change_bar_cpu_hosts", context).val()); }); $("#textInput_reserved_cpu_hosts", context).on("input", function(){