mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CS-12407: F5 & Netscaler when dedicated is selected capacity field should be disabled.
This commit is contained in:
parent
b01a18a5ba
commit
92442765d4
@ -232,7 +232,7 @@ cloudStack.preFilter = {
|
||||
}
|
||||
},
|
||||
addLoadBalancerDevice: function(args) { //add netscaler device OR add F5 device
|
||||
args.$form.bind('change', function() {
|
||||
args.$form.find('.form-item[rel=dedicated]').bind('change', function() {
|
||||
var $dedicated = args.$form.find('.form-item[rel=dedicated]');
|
||||
var $capacity = args.$form.find('.form-item[rel=capacity]');
|
||||
if($dedicated.find('input[type=checkbox]:checked').length > 0) {
|
||||
@ -240,7 +240,8 @@ cloudStack.preFilter = {
|
||||
$capacity.find('input[type=text]').val('1');
|
||||
}
|
||||
else if($dedicated.find('input[type=checkbox]:unchecked').length > 0) {
|
||||
$capacity.css('display', 'inline-block');
|
||||
$capacity.css('display', 'inline-block');
|
||||
$capacity.find('input[type=text]').val('');
|
||||
}
|
||||
});
|
||||
args.$form.change();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user