You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by jk...@apache.org on 2007/03/03 23:40:55 UTC

svn commit: r514261 - /tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js

Author: jkuhnert
Date: Sat Mar  3 14:40:54 2007
New Revision: 514261

URL: http://svn.apache.org/viewvc?view=rev&rev=514261
Log:
Wasn't transfering disabled attribute on form elements when doing inline content updates in XHR requests.

Modified:
    tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js

Modified: tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js?view=diff&rev=514261&r1=514260&r2=514261
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js (original)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js Sat Mar  3 14:40:54 2007
@@ -230,7 +230,14 @@
     	if (classStr) {
     		dojo.html.setClass(node, classStr);
     	}
-	},        
+    	// apply disabled/not disabled
+    	var disabled = element.getAttribute("disabled");
+    	if (!disabled && node["disabled"]) { 
+    		node.disabled = false;
+    	} else if (disabled) {
+    		node.disabled = true;
+    	}
+	},
 	
 	/**
 	 * Function: loadScriptContent