B #1978: Changing overcommitment on a host updates other hosts too (#2037)

This commit is contained in:
Abel Coronado authored and Tino Vázquez committed 2018-04-26 19:22:30 +02:00
1 parent 399e7907f9
commit 1ec30e60ca
1 file changed
+2 -2
@@ -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(){