Ignore:
Timestamp:
Oct 18, 2011, 3:49:05 PM (11 years ago)
Author:
Martin Svensson
Message:

References #330 The partition wizard is now ready for testing. No more known bugs/issues exists.

File:
1 edited

Legend:

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

    r1406 r1409  
    134134      nofPiecesTitle = '';
    135135     
    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)+'\')';
    137137      inputWeightHtml += '<tr>';
    138138      inputWeightHtml += '<td class="subprompt">'+caseInfo.name+'.'+(i+1)+' ['+tubes[i].box+'&nbsp;'+tubes[i].row+tubes[i].column+']</td>';
     
    140140      inputWeightHtml += '<table style=width:90%>';     
    141141      inputWeightHtml += '<tr>';
    142       inputWeightHtml += '<td>' + spInputTitle + '<input size=3 type="text" onChange="spWeightOnChange('+i+')" name="spWeight'+i+'" /></td>';
    143       inputWeightHtml += '<td>' + apInputTitle + '<input size=3 type="text" onChange="apWeightOnChange('+i+')" name="apWeight'+i+'" /></td>';
    144       inputWeightHtml += '<td>' + hisInputTitle + '<input size=3 type="text" onChange="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>';
    145145      inputWeightHtml += '<td>' + nofPiecesTitle + '<input size=3 type="text" onkeypress="'+doOnTab+'" onChange="nofPiecesOnChange('+i+')" name="nofPieces'+i+'" /></td>';
    146146      inputWeightHtml += '</tr>';
     
    225225      frm.elements[inputName].value = '';
    226226    }
    227   } 
     227  }
    228228  apWeightsAreValid[tubeIndex] = true;
    229229  updateInputStatus(tubeIndex);
     
    292292      setInputStatus('partitionDate', 'Not a valid date', 'invalid');
    293293      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)))
    296296    {
    297297      setInputStatus('partitionDate', 'Future dates are not valid','invalid');
     
    342342  var partitionCommentValue = frm.elements['partitionComment'].value;
    343343  caseInfo.partitionDate = partitionDateValue;
    344   if (partitionCommentValue != null) caseInfo.partitionComment = partitionCommentValue;
     344  if (partitionCommentValue != null) caseInfo.otherPartitionComment = partitionCommentValue;
    345345 
    346346  for (var i=0; i<nofTubes; i++)
Note: See TracChangeset for help on using the changeset viewer.