mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 05:04:56 +09:00
This commit is contained in:
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(){
|
||||
|
||||
Reference in new issue
Block a user