Author: nbelaevski
Date: 2008-04-14 14:00:00 -0400 (Mon, 14 Apr 2008)
New Revision: 7829
Modified:
branches/3.1.x/framework/impl/src/main/resources/org/ajax4jsf/javascript/scripts/form.js
Log:
http://jira.jboss.com/jira/browse/RF-2950
Modified:
branches/3.1.x/framework/impl/src/main/resources/org/ajax4jsf/javascript/scripts/form.js
===================================================================
---
branches/3.1.x/framework/impl/src/main/resources/org/ajax4jsf/javascript/scripts/form.js 2008-04-14
17:35:02 UTC (rev 7828)
+++
branches/3.1.x/framework/impl/src/main/resources/org/ajax4jsf/javascript/scripts/form.js 2008-04-14
18:00:00 UTC (rev 7829)
@@ -46,7 +46,10 @@
for(var i=0;i<fields.length;i++){
var field = form.elements[fields[i]];
if(field){
- field.value='';
+ var pNode = field.parentNode;
+ if (pNode) {
+ pNode.removeChild(field);
+ }
}
}
}