You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ke...@apache.org on 2012/05/28 00:35:41 UTC
[23/50] [abbrv] git commit: CS-12407: F5 & Netscaler when dedicated
is selected capacity field should be disabled.
CS-12407: F5 & Netscaler when dedicated is selected capacity field should be disabled.
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/7e1b073d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/7e1b073d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/7e1b073d
Branch: refs/heads/3.0.x
Commit: 7e1b073d688d2d4260411ede24cc4e3f61d4c082
Parents: 0fb1c02
Author: Sanjay Tripathi <sa...@citrix.com>
Authored: Wed May 23 23:37:03 2012 +0530
Committer: Sanjay Tripathi <sa...@citrix.com>
Committed: Fri May 25 12:12:01 2012 +0530
----------------------------------------------------------------------
ui/scripts/sharedFunctions.js | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/7e1b073d/ui/scripts/sharedFunctions.js
----------------------------------------------------------------------
diff --git a/ui/scripts/sharedFunctions.js b/ui/scripts/sharedFunctions.js
index 44f39bb..b9f5c0d 100644
--- a/ui/scripts/sharedFunctions.js
+++ b/ui/scripts/sharedFunctions.js
@@ -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();