Changeset 457 for trunk


Ignore:
Timestamp:
May 25, 2010, 11:05:52 AM (13 years ago)
Author:
duh
Message:
  • fixed improved tooltip functionality
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/taglib/dbnp/studycapturing/WizardTagLib.groovy

    r455 r457  
    761761                def inputElement= null
    762762
    763                 String helpText
    764 
    765763                // got a template?
    766764                if (template) {
    767765                        // render template fields
    768766                        entity.giveFields().each() {
    769                                 def fieldValue = entity.getFieldValue(it.name)
    770                                 helpText = (it.comment && renderType == 'element') ? it.comment : ''
     767                                def fieldValue  = entity.getFieldValue(it.name)
     768                                def helpText    = (it.comment && renderType == 'element') ? it.comment : ''
    771769
    772770                                // output column opening element?
     
    868866                                }
    869867
    870                                 // Render comment, if any
    871                                 //if (it.comment) {
    872                                 //      out << {"$helpText"}
    873                                 //}
    874 
    875868                                // output column closing element?
    876869                                if (renderType == 'column') {
  • trunk/web-app/js/wizard.js

    r434 r457  
    104104    $('div#wizard').find('div.helpIcon').each(function() {
    105105        helpIcon = $(this);
    106         helpContent = helpIcon.parent().parent().find('div.helpContent');
     106        helpContent = helpIcon.parent().find('div.helpContent');
     107        if (!helpContent.html()) {
     108            helpContent = helpIcon.parent().parent().find('div.helpContent');
     109        }
    107110
    108111        // handle special content
Note: See TracChangeset for help on using the changeset viewer.