- Timestamp:
- Oct 18, 2011, 3:49:05 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/resources/partitionform.jsp
r1406 r1409 134 134 nofPiecesTitle = ''; 135 135 136 var doOnTab = i==(tubes.length-1) ? 'doOnTab(event, goCreate)' : ' ';136 var doOnTab = i==(tubes.length-1) ? 'doOnTab(event, goCreate)' : 'focusOnEnter(event, \'spWeight'+(i+1)+'\')'; 137 137 inputWeightHtml += '<tr>'; 138 138 inputWeightHtml += '<td class="subprompt">'+caseInfo.name+'.'+(i+1)+' ['+tubes[i].box+' '+tubes[i].row+tubes[i].column+']</td>'; … … 140 140 inputWeightHtml += '<table style=width:90%>'; 141 141 inputWeightHtml += '<tr>'; 142 inputWeightHtml += '<td>' + spInputTitle + '<input size=3 type="text" on Change="spWeightOnChange('+i+')" name="spWeight'+i+'" /></td>';143 inputWeightHtml += '<td>' + apInputTitle + '<input size=3 type="text" on Change="apWeightOnChange('+i+')" name="apWeight'+i+'" /></td>';144 inputWeightHtml += '<td>' + hisInputTitle + '<input size=3 type="text" on Change="hisWeightOnChange('+i+')" name="hisWeight'+i+'" /></td>';142 inputWeightHtml += '<td>' + spInputTitle + '<input size=3 type="text" onkeypress="focusOnEnter(event, \'apWeight'+i+'\')" onChange="spWeightOnChange('+i+')" name="spWeight'+i+'" /></td>'; 143 inputWeightHtml += '<td>' + apInputTitle + '<input size=3 type="text" onkeypress="focusOnEnter(event, \'hisWeight'+i+'\')" onChange="apWeightOnChange('+i+')" name="apWeight'+i+'" /></td>'; 144 inputWeightHtml += '<td>' + hisInputTitle + '<input size=3 type="text" onkeypress="focusOnEnter(event, \'nofPieces'+i+'\')" onChange="hisWeightOnChange('+i+')" name="hisWeight'+i+'" /></td>'; 145 145 inputWeightHtml += '<td>' + nofPiecesTitle + '<input size=3 type="text" onkeypress="'+doOnTab+'" onChange="nofPiecesOnChange('+i+')" name="nofPieces'+i+'" /></td>'; 146 146 inputWeightHtml += '</tr>'; … … 225 225 frm.elements[inputName].value = ''; 226 226 } 227 } 227 } 228 228 apWeightsAreValid[tubeIndex] = true; 229 229 updateInputStatus(tubeIndex); … … 292 292 setInputStatus('partitionDate', 'Not a valid date', 'invalid'); 293 293 return; 294 } 295 if (todaysDate < new Date(partitionDate.substring(0,4), partitionDate.substring(4,6), partitionDate.substring(6)))294 } 295 if (todaysDate < new Date(partitionDate.substring(0,4), new Number(partitionDate.substring(4,6)-1), partitionDate.substring(6))) 296 296 { 297 297 setInputStatus('partitionDate', 'Future dates are not valid','invalid'); … … 342 342 var partitionCommentValue = frm.elements['partitionComment'].value; 343 343 caseInfo.partitionDate = partitionDateValue; 344 if (partitionCommentValue != null) caseInfo. partitionComment = partitionCommentValue;344 if (partitionCommentValue != null) caseInfo.otherPartitionComment = partitionCommentValue; 345 345 346 346 for (var i=0; i<nofTubes; i++)
Note: See TracChangeset
for help on using the changeset viewer.