|
From: <bor...@li...> - 2006-02-02 10:12:44
|
Author: chu...@bo...
Date: 2006-02-02 11:12:27 +0100 (Thu, 02 Feb 2006)
New Revision: 383
Modified:
trunk/Web/Controls/client_scripts/ControlUtil.js
Log:
* fix enabling/hiding of JSCheckBox control
Modified: trunk/Web/Controls/client_scripts/ControlUtil.js
===================================================================
--- trunk/Web/Controls/client_scripts/ControlUtil.js 2006-02-01 16:30:13 UTC (rev 382)
+++ trunk/Web/Controls/client_scripts/ControlUtil.js 2006-02-02 10:12:27 UTC (rev 383)
@@ -323,7 +323,7 @@
var c = BorgWorX.Web.Controls.Globals.FindElement( ctl );
if ( visible ) {
c.style.display = "block";
- if ( type != null && type == "Boolean" ) {
+ if ( type != null && ( type == "Boolean" || type == "JSCheckBox" ) ) {
var elems = document.getElementsByTagName("label");
for( var i = 0; i < elems.length; i++ ) {
//alert( "Found label: " + elems[i].htmlFor );
@@ -334,7 +334,7 @@
}
} else {
c.style.display = "none";
- if ( type != null && type == "Boolean" ) {
+ if ( type != null && ( type == "Boolean" || type == "JSCheckBox" ) ) {
var elems = document.getElementsByTagName("label");
for( var i = 0; i < elems.length; i++ ) {
//alert( "Found label: " + elems[i].htmlFor );
@@ -350,7 +350,7 @@
var c = BorgWorX.Web.Controls.Globals.FindElement( ctl );
if ( visible ) {
c.removeAttribute("disabled");
- if ( type != null && type == "Boolean" ) {
+ if ( type != null && ( type == "Boolean" || type == "JSCheckBox" ) ) {
var elems = document.getElementsByTagName("label");
for( var i = 0; i < elems.length; i++ ) {
//alert( "Found label: " + elems[i].htmlFor );
@@ -361,7 +361,7 @@
}
} else {
c.disabled = true;
- if ( type != null && type == "Boolean" ) {
+ if ( type != null && ( type == "Boolean" || type == "JSCheckBox" ) ) {
var elems = document.getElementsByTagName("label");
for( var i = 0; i < elems.length; i++ ) {
//alert( "Found label: " + elems[i].htmlFor );
|