Ignore:
Timestamp:
May 21, 2013, 2:34:28 PM (9 years ago)
Author:
Nicklas Nordborg
Message:

References #473: Register library processing results

Show warning if trying to register a library plate without any quality control PDF files attached to it. Registration is still possible.

Added "manual select" functionality for registering quality control PDF:s to a library plate. This allows a PDF file to be attached to a plate at any time.

File:
1 edited

Legend:

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

    r1968 r1986  
    4949    {
    5050      var bioplate = bioplates[i];
    51       var option = new Option(bioplate.name, bioplate.id);
    52       option.comments = bioplate.comments;
     51      var warning = bioplate.numFiles == 0 ? ' ( ! )' : '';
     52      var option = new Option(bioplate.name + warning, bioplate.id);
     53      option.bioplate = bioplate;
    5354      plates.options[plates.length] = option;
    5455    }
     
    214215{
    215216  var frm = document.forms['reggie'];
     217  var selectedPlate = frm.bioplate[frm.bioplate.selectedIndex].bioplate;
     218  if (selectedPlate.numFiles == 0)
     219  {
     220    setInputStatus('bioplate', 'No quality control PDF has been registered for this plate', 'warning');
     221  }
     222  else
     223  {
     224    setInputStatus('bioplate', '', 'valid');
     225  }
    216226}
    217227
Note: See TracChangeset for help on using the changeset viewer.