reworked dojo query to apply only to amenity checkboxes as there are also hidden inputs inside the targeted div.

http://jira.springframework.org/browse/SWF-865
This commit is contained in:
Scott Andrews
2008-08-25 14:41:43 +00:00
parent 80bc43ca98
commit f97fd54534

View File

@@ -102,7 +102,7 @@
<li><form:checkbox path="amenities" value="MINIBAR" label="Minibar" /></li>
</ul>
<script type="text/javascript">
dojo.query('#amenities input').forEach(function(element){
dojo.query("#amenities input[type='checkbox']").forEach(function(element){
Spring.addDecoration(new Spring.ElementDecoration({
elementId: element.id,
widgetType : "dijit.form.CheckBox",