- Timestamp:
- Mar 21, 2011, 9:37:42 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/resources/persinfo.jsp
r1317 r1318 193 193 } 194 194 } 195 else 195 else if (laterality == '') 196 196 { 197 197 laterality = null; … … 217 217 } 218 218 } 219 } 220 221 function padOnChange() 222 { 223 var frm = document.forms['reggie']; 224 var PAD = frm.pad.value; 225 if (PAD == '') 226 { 227 setInputStatus('pad', 'Missing', 'warning'); 228 return; 229 } 230 frm.pad.value = PAD.replace(/\+/, '-'); 231 setInputStatus('pad', '', 'valid'); 232 219 233 } 220 234 … … 423 437 Main.hide('gonext'); 424 438 Main.show('gocreate'); 439 440 if (!hasPAD && lateralityIsValid) frm.pad.focus(); 425 441 } 426 442 … … 793 809 <td class="prompt">PAD</td> 794 810 <td class="input"><input type="text" name="pad" 795 value="" size="35" maxlength="255" 796 onkeypress="focusOnEnter(event, 'reasonIfNoSpecimen')"></td> 797 <td class="status"></td> 798 <td class="help"></td> 811 value="" size="18" maxlength="12" 812 onkeypress="focusOnEnter(event, 'reasonIfNoSpecimen')" 813 onblur="padOnChange()"></td> 814 <td class="status" id="pad.status"></td> 815 <td class="help"><span id="pad.message" class="message" style="display: none;"></span>PAD should be entered when no specimen tubes have been registered</td> 799 816 </tr> 800 817 <tr id="reasonIfNoSpecimenSection" valign="top">
Note: See TracChangeset
for help on using the changeset viewer.