Ignore:
Timestamp:
Feb 7, 2012, 9:38:28 AM (10 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #356: Warning message about non-standard personal number is not shown when <enter> is used

For some reason the goNext() function was invoked with '22' as a parameter (don't know where that comes from) making it believe that the user had clicked the "Next" button. The fix is to use a parameterless function goNextAuto() instead. The fix is needed on the personal information registration and the blood registration but has been added to the other forms as well if it is needed in the future.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/resources/partitionform.jsp

    r1460 r1530  
    6363}
    6464
    65 function goNext()
     65function goNextAuto()
     66{
     67  goNext(false);
     68}
     69
     70function goNext(manual)
    6671{
    6772  setInnerHTML('gonext.message', '');
     
    657662      <tr valign="top">
    658663        <td class="prompt">Specimen tubes</td>
    659         <td class="input"><select style="width:50%" name="tubeSelect" id="tubesSelect" multiple="multiple" size="12" onkeypress='doOnTab(event, goNext)'></select></td>
     664        <td class="input"><select style="width:50%" name="tubeSelect" id="tubesSelect" multiple="multiple" size="12" onkeypress='doOnTab(event, goNextAuto)'></select></td>
    660665        <td class="status" id="tubes.status"></td>
    661666        <td class="help"><span id="tubes.message" class="message" style="display: none;"></span>Select specimen tubes to include in the partition.</td>
Note: See TracChangeset for help on using the changeset viewer.