Author: hlship
Date: Tue Apr 15 11:52:10 2008
New Revision: 648375
URL: http://svn.apache.org/viewvc?rev=648375&view=rev
Log:
TAPESTRY-2343: The FormInjector should copy its class attribute to the new
element (on the client side)
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/tapestry.js
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/tapestry.js
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/tapestry.js?rev=648375&r1=648374&r2=648375&view=diff
==============================================================================
---
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/tapestry.js
(original)
+++
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/tapestry.js
Tue Apr 15 11:52:10 2008
@@ -883,9 +883,9 @@
// Clone the FormInjector element (usually a div)
// to create the new element, that gets inserted
- // before or after the FormInjector element.
+ // before or after the FormInjector's element.
- var newElement = new Element(this.element.tagName);
+ var newElement = new Element(this.element.tagName, { 'class' :
this.element.className });
// Insert the new element before or after the existing element.