Ignore:
Timestamp:
Apr 12, 2013, 2:34:01 PM (9 years ago)
Author:
Nicklas Nordborg
Message:

References #424, #425, #457, #479. Re-designed protocols to make the header section a bit more compact when the comment text is large. Display a warning when the remaining RNA quanitity is below 1.5 times the required amount (eg. 1.1µg or 1.22µg).

File:
1 edited

Legend:

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

    r1897 r1929  
    4040var QUANTITY_REGULAR = 1.1;
    4141var QUANTITY_QC = 1.22;
     42var LOW_QUANTITY_WARNING_FACTOR = 1.5;
    4243
    4344var Rna = function()
     
    201202        {
    202203          text += '<div class="quantity">'+Numbers.formatNumber(info.remainingQuantity, 2) + 'µg</div>';
    203           if (info.remainingQuantity < (rna.qc ? QUANTITY_QC : QUANTITY_REGULAR))
     204          // Must have at least 1.1µg or 1.22µg
     205          var remainLimit = rna.qc ? QUANTITY_QC : QUANTITY_REGULAR;
     206          if (info.remainingQuantity < remainLimit)
     207          {
     208            if (!warningMsg) warningMsg = 'Low quantity';
     209          }
     210          // Warning if near the limit
     211          if (info.remainingQuantity < remainLimit *  LOW_QUANTITY_WARNING_FACTOR)
    204212          {
    205213            if (!warningMsg) warningMsg = 'Low quantity';
Note: See TracChangeset for help on using the changeset viewer.