Ignore:
Timestamp:
Feb 9, 2011, 8:55:29 PM (9 years ago)
Author:
t.w.abma@…
Message:
  • added initial property manager (load/save import mappings) just in case
File:
1 edited

Legend:

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

    r1505 r1511  
    1414         */
    1515%>
    16 <script type="text/javascript">
    1716
    18 // for each select field on the page
    19 $(document).ready(function() {
    20 
    21 $('select[name^=columnproperty.index.]').each ( function() {
    22 
    23   $(this).bind('change', function(e) {
    24       //console.log($(this).val())     
    25       var selection = $(this)
    26 
    27       $('select[name^=columnproperty.index.] option:selected').each ( function() {
    28         var selector = $(this)
    29        
    30         if (selection.attr('id') != selector.parent().attr('id') && (selection.val()!="dontimport"))
    31           if ($(this).val() == selection.val()) {
    32             selection.val($('option:first', selection).val());
    33 
    34             alert("Property is already set for an other column, please choose a different property.")
    35             return false
    36           }
    37       });     
    38    
    39   });
    40  
    41 });
    42 
    43 
    44 
    45 });
    46 </script>
    4717<!-- saveproperties action was defined in the form -->
    4818    <table>
     
    5222              <tr><td colspan="3"><h4>${stdentity.name}</h4></td></tr>
    5323                <tr>
    54             <td class="header" width="25px"><input id="clearselect" type="button" value="Clear" name="clearselect">
    55               <input id="fuzzymatchselect" type="button" value="Match" name="fuzzymatchselect">
     24            <td class="header" width="25px">
     25              <input class="buttonsmall" id="clearselect" type="button" value="Clear" name="clearselect">
     26              <input class="buttonsmall" id="fuzzymatchselect" type="button" value="Match" name="fuzzymatchselect">
     27              <!-- <input class="buttonsmall" id="savepropertiesbutton" type="button" value="Save" name="savepropertiesbutton"> -->
    5628            </td>
    5729            <g:each var="selentity" in="${importer_selectedentities}">
Note: See TracChangeset for help on using the changeset viewer.