Changeset 2227


Ignore:
Timestamp:
Feb 14, 2014, 11:18:23 AM (9 years ago)
Author:
Nicklas Nordborg
Message:

References #562: Re-design clustering and sequencing startup wizards

Make sure that the information displayed is from the currently selected runParameters.xml file if the user switches to another file.

File:
1 edited

Legend:

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

    r2225 r2227  
    145145  var file = event.target.files[0];
    146146 
     147  // Clear information
     148  setInnerHTML('experimentName', '');
     149  setInnerHTML('externalId', '');
     150  setInnerHTML('runId', '');
     151  setInnerHTML('position', '');
     152  setInnerHTML('runNumber', '');
     153  setInnerHTML('startDate', '');
     154  setInnerHTML('sequencingCycles', '');
     155  Main.hide('existing-sequencing-runs');
     156  setInnerHTML('existing-sequencing-runs', '');
     157 
    147158  var reader = new FileReader();
    148159  reader.onload = runParametersXmlFileLoaded;
     
    214225  if (el == null)
    215226  {
    216     throw "Can't find value for <"+selector+">";
     227    throw "Can't find tag <"+selector+">";
    217228  }
    218229  return el.textContent;
     
    236247    throw 'Flow cell with ID='+info.FlowCellID+' not found.';
    237248  }
     249  var html = '';
     250  html += '<tr valign="top" class="fc-info">';
     251  html += '<td class="prompt" colspan="2">Existing sequencing runs for ' + flowCell.name + '</td>';
     252  html += '';
     253  html += '<td class="status"></td>';
     254  html += '<td class="help">Start and end date is shown for other registered sequencing runs.</td>';
     255  html += '</tr>';
     256
    238257  var seqRuns = getSequencingRunsForFlowCell(flowCell);
     258  var runExists = null;
    239259  if (seqRuns.length > 0)
    240260  {
    241     var html = '';
    242     html += '<tr valign="top" class="fc-info">';
    243     html += '<td class="prompt" colspan="2">Existing sequencing runs for ' + flowCell.name + '</td>';
    244     html += '';
    245     html += '<td class="status"></td>';
    246     html += '<td class="help">Start and end date is shown for other registered sequencing runs.</td>';
    247     html += '</tr>';
    248 
    249     var runExists = null;
    250261    for (var seqNo = 0; seqNo < seqRuns.length; seqNo++)
    251262    {
    252263      var seqRun = seqRuns[seqNo];
    253 
    254264      html += '<tr valign="top" class="fc-info">';
    255265      html += '<td class="subprompt">'+seqRun.name+'</td>';
     
    268278      }
    269279    }
    270     Main.show('existing-sequencing-runs');
    271     setInnerHTML('existing-sequencing-runs', html);
    272     if (runExists)
    273     {
    274       throw 'This sequencing run has already been registered: ' + runExists.name;
    275     }
     280  }
     281  else
     282  {
     283    html += '<tr valign="top" class="fc-info">';
     284    html += '<td class="subprompt"></td>';
     285    html += '<td class="input" colspan="2">';
     286    html += 'none';
     287    html += '</td>';
     288    html += '<td class="help"></td>';
     289    html += '</tr>';
     290   
     291  }
     292  Main.show('existing-sequencing-runs');
     293  setInnerHTML('existing-sequencing-runs', html);
     294  if (runExists != null)
     295  {
     296    throw 'This sequencing run has already been registered: ' + runExists.name;
    276297  }
    277298 
     
    555576      <tr valign="top">
    556577        <td class="prompt">Comments</td>
    557         <td class="input"><textarea rows="4" cols="50" style="width: 90%;" name="comments"></textarea></td>
     578        <td class="input"><textarea rows="6" cols="50" style="width: 95%;" name="comments"></textarea></td>
    558579        <td class="status" id="comments.status"></td>
    559580        <td class="help"><span id="comments.message" class="message" style="display: none;"></span>
Note: See TracChangeset for help on using the changeset viewer.