Changeset 1171 for trunk/grails-app/views/importer/index_simple.gsp
- Timestamp:
- Nov 18, 2010, 3:20:10 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/importer/index_simple.gsp
r1148 r1171 35 35 var items = data 36 36 37 // If a study has been selected, don't show the "Choose study" field, otherwise do 38 if ($('#'+'entity ').val() == 'study')37 // If a study has been selected, don't show the "Choose study" field, otherwise do 38 if ($('#'+'entity :selected').text() == 'Study') 39 39 $('#studyfield').hide(); 40 40 else $('#studyfield').show(); 41 41 42 42 // set the entity name for the data template chooser 43 // alert ( "das" + $('select[name=template_id]').attr('entity'))43 //if ($('#'+'entity').val() == 'event') 44 44 45 45 //$('select[name=template_id]').attr('entity', $('#'+'entity').val()); 46 $('select[name=template_id]').attr('entity', $('#'+'entity').val()); 47 46 48 47 49 if (items) { … … 72 74 rel : 'typetemplate', 73 75 url : '/gscf/templateEditor', 74 vars : ' thentity', // can be a comma separated list of variable names to pass on76 vars : 'entity', // can be a comma separated list of variable names to pass on 75 77 label : 'add / modify ...', 76 78 style : 'modify', … … 162 164 from="${entities}" 163 165 optionValue="${{it.value.name}}" 164 optionKey=" key"166 optionKey="${{it.value.encrypted}}" 165 167 noSelection="['':'-Choose type of data-']" 166 168 onChange="${remoteFunction( controller: 'importer', … … 175 177 </td> 176 178 <td> 177 <g:select rel="typetemplate" entity=" hoi" name="template_id" optionKey="id" optionValue="name" from="[]" />179 <g:select rel="typetemplate" entity="none" name="template_id" optionKey="id" optionValue="name" from="[]" /> 178 180 </td> 179 181 </tr>
Note: See TracChangeset
for help on using the changeset viewer.