Changeset 1231


Ignore:
Timestamp:
Dec 2, 2010, 1:31:29 PM (12 years ago)
Author:
t.w.abma@…
Message:
  • button to clear column mappings selectboxes, added to step 2 in the wizard (property/column mapping)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/importer/common/_properties_horizontal.gsp

    r1171 r1231  
    1313         */
    1414%>
     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>
    1531<g:form name="propertiesform" action="saveProperties">
    1632    <table>
    1733          <g:each var="stdentity" in ="${standardentities}">           
    1834              <% 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>
    2036                <tr>
     37                  <td class="header" width="25px"><input id="clearselect" type="button" value="clear" name="clearselect"></td>
    2138                <g:each var="selentity" in="${selectedentities}">                   
    2239                    <g:if test="${selentity.name.toLowerCase()==stdentity.value.entity.toLowerCase()}">
     
    3047                <g:each var="row" in="${datamatrix}">
    3148                <tr>
     49                  <td class="datamatrix">
     50                  </td>
    3251                    <g:each var="cell" in="${row}">
    3352                        <td class="datamatrix">
Note: See TracChangeset for help on using the changeset viewer.