Changeset 297
- Timestamp:
- 04/20/10 17:22:18 (3 years ago)
- Location:
- trunk/clinicaltrials
- Files:
-
- 2 modified
-
repository/trds_forms.py (modified) (2 diffs)
-
static/js/submission.utils.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/clinicaltrials/repository/trds_forms.py
r294 r297 58 58 'field': unicode(bf), 59 59 'help_text': help_text, 60 'help_id': ' help%s' % help_record.pk,60 'help_id': 'id_%s-help%s' % ((self.prefix or name),help_record.pk), 61 61 'issue': issue_text,}) 62 62 if top_errors: … … 77 77 'field': '', 78 78 'help_text': '', 79 'help_id': ' help%s' % help_record.pk,79 'help_id': 'id_%s-help%s' % (self.prefix,help_record.pk), 80 80 'issue': '',} 81 81 output.append(last_row) -
trunk/clinicaltrials/static/js/submission.utils.js
r291 r297 15 15 var newFor = $(this).attr('for').replace('-' + (total-1) + '-','-' + total + '-'); 16 16 $(this).attr('for', newFor); 17 }); 18 newElement.find('img[rel]').each(function() { 19 var newFor = $(this).attr('rel').replace('-' + (total-1) + '-','-' + total + '-'); 20 $(this).attr('rel', newFor); 21 }); 22 newElement.find('div[id]').each(function() { 23 var newFor = $(this).attr('id').replace('-' + (total-1) + '-','-' + total + '-'); 24 $(this).attr('id', newFor); 17 25 }); 18 26 total++;
