Changeset 1770


Ignore:
Timestamp:
Dec 5, 2012, 12:46:44 PM (10 years ago)
Author:
Nicklas Nordborg
Message:

References #424: Select RNA items for library preparation

Fixed problems with variable names/types in the auto-select wizard.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/branches/ticket-422/resources/libprep/select_rna.jsp

    r1769 r1770  
    868868
    869869  var wells = Plate.getWells();
     870  var selected = [];
    870871  var ignore = [];
    871   var selected = 0;
    872872  var notEmpty = 0;
    873873 
     
    878878    if (well.selected)
    879879    {
    880       selected++;
     880      selected[selected.length] = well;
    881881      if (well.rna && !well.hasError()) notEmpty++;
    882882    }
     
    887887  }
    888888 
    889   if (selected == 0)
     889  if (selected.length == 0)
    890890  {
    891891    alert('Please select one or more wells were RNA should be placed.');
     
    902902
    903903  var request = Ajax.getXmlHttpRequest();
    904   var url = '../MRna.servlet?ID=<%=ID%>&cmd=AutoSelectRnaForMRna&numToSelect='+currentSelected;
     904  var url = '../MRna.servlet?ID=<%=ID%>&cmd=AutoSelectRnaForMRna&numToSelect='+selected.length;
    905905  url += '&ignore='+ignore.join(',');
    906906  request.open("GET", url, false);
     
    922922    alert('Could not find any unprocessed RNA at this time.');
    923923  }
    924  
    925924  for (var i = 0; i < response.rna.length; i++)
    926925  {
Note: See TracChangeset for help on using the changeset viewer.