Author: sergeyhalipov
Date: 2008-04-14 14:52:56 -0400 (Mon, 14 Apr 2008)
New Revision: 7830
Modified:
trunk/framework/impl/src/main/resources/org/ajax4jsf/javascript/scripts/form.js
Log:
http://jira.jboss.com/jira/browse/RF-2251
Modified: trunk/framework/impl/src/main/resources/org/ajax4jsf/javascript/scripts/form.js
===================================================================
---
trunk/framework/impl/src/main/resources/org/ajax4jsf/javascript/scripts/form.js 2008-04-14
18:00:00 UTC (rev 7829)
+++
trunk/framework/impl/src/main/resources/org/ajax4jsf/javascript/scripts/form.js 2008-04-14
18:52:56 UTC (rev 7830)
@@ -57,7 +57,10 @@
for(var i=0;i<fields.length;i++){
var field = form.elements[fields[i]];
if(field){
- form.removeChild(field);
+ var pNode = field.parentNode;
+ if (pNode) {
+ pNode.removeChild(field);
+ }
}
}
}
@@ -103,4 +106,4 @@
A4J._formInput = null;
}
}
-}
\ No newline at end of file
+}