Changeset 2138


Ignore:
Timestamp:
Nov 14, 2013, 9:21:34 AM (8 years ago)
Author:
olle
Message:

Refs #449. Wizard for registration of follow-up blood samples updated to proceed to step 2 after an <Enter> key press, when the input RCCID and personal numbers are valid and standard (previously it was necessary to click the "Next" button):

  1. JSP script bloodfollowupform.jsp in reggie/resources/personal/ updated by moving disabling of RCCID and personal number input fields from function getPatientInfo() to function goNext(manual), after checking that the input is OK. Previous design was problematic for follow-up blood samples, since function personalNumberOnChange() calls getPatientInfo() to check if a patient exists with input personal number, which resulted in the personal number input field being disabled, as soon as the last digit in a valid personal number was entered, making it unresponsive to key press.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/branches/2.13-stable/resources/personal/bloodfollowupform.jsp

    r2023 r2138  
    153153    if (step1InputOk)
    154154    {
     155      frm.rccidNumber.disabled = true;
     156      frm.personalNumber.disabled = true;
     157      // Check if patient exists with input personal number
    155158      getPatientInfo();
    156159      if (patientInfo != null && patientInfo.id)
     
    287290  if (pnrIsValid)
    288291  {
     292    // Check if patient exists with input personal number
    289293    getPatientInfo();
    290294    if (patientInfo == null || !patientInfo.id)
     
    302306{
    303307  // Check entered pnr with AJAX
    304   var frm = document.forms['reggie'];
    305   frm.rccidNumber.disabled = true;
    306   frm.personalNumber.disabled = true;
    307   //currentStep = 1;
    308  
     308  var frm = document.forms['reggie'];
    309309  var pnr = frm.personalNumber.value;
    310310  if (pnr.length == 10 && pnrIsValid)
Note: See TracChangeset for help on using the changeset viewer.