Ignore:
Timestamp:
Oct 25, 2010, 4:30:08 PM (10 years ago)
Author:
robert@…
Message:

Fixed bug #21: error when adding a person to a study without selecting a role

File:
1 edited

Legend:

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

    r976 r990  
    12731273
    12741274        def _contactAddButtonAddition = { attrs, body ->
    1275                 out << '<input type="button" onClick="addContact ( \'' + attrs.name + '\' ); $(\'#' + attrs.name + '_dialog\').hide(); $( \'#' + attrs.name + '_dialogButton\' ).show();" value="Add">';
     1275                out << '<input type="button" onClick="if( addContact ( \'' + attrs.name + '\' ) ) { $(\'#' + attrs.name + '_dialog\').hide(); $( \'#' + attrs.name + '_dialogButton\' ).show(); }" value="Add">';
    12761276                out << '<input type="button" onClick="$(\'#' + attrs.name + '_dialog\').hide(); $( \'#' + attrs.name + '_dialogButton\' ).show();" value="Close">';
    12771277        }
Note: See TracChangeset for help on using the changeset viewer.