Author: nbelaevski
Date: 2008-01-29 14:46:14 -0500 (Tue, 29 Jan 2008)
New Revision: 5717
Modified:
trunk/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js
Log:
http://jira.jboss.com/jira/browse/RF-2108
Modified:
trunk/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js
===================================================================
---
trunk/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js 2008-01-29
19:22:13 UTC (rev 5716)
+++
trunk/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js 2008-01-29
19:46:14 UTC (rev 5717)
@@ -208,9 +208,10 @@
tableUpdate : function(component) {
var table = component.shuttleTable;
- table.removeChild(table.tBodies[0]);
- var tbody = document.createElement("tbody");
- table.appendChild(tbody);
+ var tbody = table.tBodies[0];
+ var newTbody = tbody.cloneNode(false);
+ table.removeChild(tbody);
+ table.appendChild(newTbody);
component.shuttleTbody = table.tBodies[0];
},