From bef629ac818a7c563e9adc0cecbdbeb69b8e5f3a Mon Sep 17 00:00:00 2001 From: Vinicius Coque Date: Tue, 15 Nov 2011 14:55:52 -0200 Subject: Converting from scriptaculous to jQuery --- usr/local/www/javascript/load_balancer_pool_edit/pool.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'usr/local/www/javascript/load_balancer_pool_edit') diff --git a/usr/local/www/javascript/load_balancer_pool_edit/pool.js b/usr/local/www/javascript/load_balancer_pool_edit/pool.js index fd626e5..1ecb61b 100755 --- a/usr/local/www/javascript/load_balancer_pool_edit/pool.js +++ b/usr/local/www/javascript/load_balancer_pool_edit/pool.js @@ -113,19 +113,19 @@ function moveOptions(theSelFrom, theSelTo) function checkPoolControls() { var active = document.iform.serversSelect; var inactive = document.iform.serversDisabledSelect; - if ($("mode").value == "failover") { - if ($("serversSelect").length > 0) { - $("moveToEnabled").disabled=1; + if (jQuery("#mode").val() == "failover") { + if (jQuery("#serversSelect option").length > 0) { + jQuery("#moveToEnabled").prop("disabled",true); } else { - $("moveToEnabled").disabled=0; + jQuery("#moveToEnabled").prop("disabled",false); } } else { - $("moveToEnabled").disabled=0; + jQuery("#moveToEnabled").prop("disabled",false);; } } function enforceFailover() { - if ($("mode").value != "failover") { + if (jQuery("#mode").val() != "failover") { return; } var active = document.iform.serversSelect; -- cgit v1.1