incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmarga...@apache.org
Subject svn commit: r529839 - /incubator/xap/trunk/codebase/src/xap/bridges/basic/AbstractWidgetBridge.js
Date Wed, 18 Apr 2007 02:44:26 GMT
Author: jmargaris
Date: Tue Apr 17 19:44:25 2007
New Revision: 529839

URL: http://svn.apache.org/viewvc?view=rev&rev=529839
Log:
reasonable disabled behavior that works with form components

Modified:
    incubator/xap/trunk/codebase/src/xap/bridges/basic/AbstractWidgetBridge.js

Modified: incubator/xap/trunk/codebase/src/xap/bridges/basic/AbstractWidgetBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/bridges/basic/AbstractWidgetBridge.js?view=diff&rev=529839&r1=529838&r2=529839
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/bridges/basic/AbstractWidgetBridge.js (original)
+++ incubator/xap/trunk/codebase/src/xap/bridges/basic/AbstractWidgetBridge.js Tue Apr 17
19:44:25 2007
@@ -884,6 +884,11 @@
  */
 xap.bridges.basic.AbstractWidgetBridge.prototype.setDisabledAttribute = function(value){
 	this._disabled = value=='true'?true:false;
+	
+	//form components understand the disabled attribute so set it here
+	if (this.getRootDomNode()){
+		this.getRootDomNode().disabled = this._disabled;
+	}
 	if (this._disabled){
 		this.addStyleState("Disabled");
 	}



Mime
View raw message