diff --git a/instances/templates/instance.html b/instances/templates/instance.html index 9f87dc3c..98fa3e07 100644 --- a/instances/templates/instance.html +++ b/instances/templates/instance.html @@ -320,6 +320,8 @@ var container = $(this).closest('.js-custom__container'); var toggles = container.find('.js-custom__toggle'); toggles.toggle(); + // a custom value is sent only while its box is ticked + container.find('input.js-custom__toggle').prop('disabled', !this.checked); }); }); diff --git a/instances/templates/instances/resize_tab.html b/instances/templates/instances/resize_tab.html index cf0321e8..b95b293a 100644 --- a/instances/templates/instances/resize_tab.html +++ b/instances/templates/instances/resize_tab.html @@ -97,7 +97,7 @@ {% endfor %} - + {% trans "Custom value" %} @@ -106,13 +106,18 @@ {% trans "Maximum Allocation" %} ({% trans "MB" %})