Ignore:
Timestamp:
Dec 11, 2012, 2:52:36 PM (10 years ago)
Author:
olle
Message:

Fixes #448. The blood registration form now accepts comments.

File:
1 edited

Legend:

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

    r1773 r1775  
    473473      Forms.selectListOption(frm.bloodSample, bloodInfo.bloodSample);
    474474    }
     475    if (bloodInfo.otherPathNote)
     476    {
     477      frm.otherPathNote.value = bloodInfo.otherPathNote;
     478    }
    475479  }
    476480  else
     
    519523  bloodInfo.serum = frm.serum.checked ? "Yes" : "No";
    520524  bloodInfo.bloodSample = frm.bloodSample[frm.bloodSample.selectedIndex].value;
     525  bloodInfo.otherPathNote = frm.otherPathNote.value;
    521526  if (frm.copyConsent.checked && frm.copyConsent.value)
    522527  {
     
    529534  frm.freezerTime.disabled = true;
    530535  frm.bloodSample.disabled = true;
     536  frm.otherPathNote.disabled = true;
    531537
    532538  var updateMode = bloodInfo.id;
     
    754760        <td class="prompt" id="bloodSample.prompt">Blood sample</td>
    755761        <td class="input" id="bloodSample.input">
    756           <select name="bloodSample">
     762          <select onkeypress="focusOnEnter(event, 'otherPathNote')"
     763            name="bloodSample"
     764          >
    757765            <option selected value="">unknown
    758766            <option value="PreNeo">PreNeo
     
    762770        <td class="status" id="bloodSample.status"></td>
    763771        <td class="help"><span id="bloodSample.message" class="message" style="display: none;"></span></td>
     772      </tr>
     773      <tr>
     774        <td class="prompt" id="otherPathNote.prompt">Other path note</td>
     775        <td class="input" id="otherPathNote.input"><textarea rows="3" cols="30"
     776          name="otherPathNote" value="" onkeypress="doOnTab(event, goNextAuto)"></textarea></td>
     777        <td class="status" id="otherPathNote.status"></td>
     778        <td class="help"><span id="otherPathNote.message" class="message" style="display: none;"></span></td>
    764779      </tr>
    765780      <tr id="copyConsentSection" style="display: none;">
Note: See TracChangeset for help on using the changeset viewer.