Changeset 1231
- Timestamp:
- Dec 2, 2010, 1:31:29 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/importer/common/_properties_horizontal.gsp
r1171 r1231 13 13 */ 14 14 %> 15 <script type="text/javascript"> 16 // for each select field on the page 17 $(document).ready(function() { 18 19 $('#clearselect').click(function() { 20 21 // for each select field on the page 22 $("select").each( function(){ 23 // set its value to its first option 24 $(this).val($('option:first', this).val()); 25 }); 26 27 }); 28 29 }); 30 </script> 15 31 <g:form name="propertiesform" action="saveProperties"> 16 32 <table> 17 33 <g:each var="stdentity" in ="${standardentities}"> 18 34 <% if (selectedentities.any { it.name.toLowerCase() == stdentity.value.entity.toLowerCase() } && stdentity.value.entity!="") { %> 19 <tr><td colspan=" 2"><h4>${stdentity.value.name}</h4></td></tr>35 <tr><td colspan="3"><h4>${stdentity.value.name}</h4></td></tr> 20 36 <tr> 37 <td class="header" width="25px"><input id="clearselect" type="button" value="clear" name="clearselect"></td> 21 38 <g:each var="selentity" in="${selectedentities}"> 22 39 <g:if test="${selentity.name.toLowerCase()==stdentity.value.entity.toLowerCase()}"> … … 30 47 <g:each var="row" in="${datamatrix}"> 31 48 <tr> 49 <td class="datamatrix"> 50 </td> 32 51 <g:each var="cell" in="${row}"> 33 52 <td class="datamatrix">
Note: See TracChangeset
for help on using the changeset viewer.