Changeset 2108


Ignore:
Timestamp:
Oct 29, 2013, 11:10:58 AM (9 years ago)
Author:
Nicklas Nordborg
Message:

References #512: Updates to the register pooled libraries wizard

Fixed issue with selecting pools coming from multiple library plates.

Location:
extensions/net.sf.basedb.reggie/trunk/resources/libprep
Files:
2 edited

Legend:

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

    r2091 r2108  
    5151    {
    5252      var pool = pools[poolNo];
    53      
    5453      // Shortcut to single-plate pools
    5554      var libPlateForPool = pool.libPlates.length == 1 ? pool.libPlates[0] : null;
     
    126125    // If a libplate is selected, only show pools that have all libraries from that plate
    127126    // If no libplate is selected, only show pools that have libraries from multiple plates
    128     var addPool = (libPlateId && pool.libPlate.id == libPlateId) || (!libPlateId && pool.libPlate == null);
     127    var addPool = (libPlateId && pool.libPlate && pool.libPlate.id == libPlateId) || (!libPlateId && pool.libPlate == null);
    129128    if (addPool)
    130129    {
  • extensions/net.sf.basedb.reggie/trunk/resources/libprep/pool_registration.jsp

    r2091 r2108  
    130130    // If a libplate is selected, only show pools that have all libraries from that plate
    131131    // If no libplate is selected, only show pools that have libraries from multiple plates
    132     var addPool = (libPlateId && pool.libPlate.id == libPlateId) || (!libPlateId && pool.libPlate == null);
     132    var addPool = (libPlateId &&  pool.libPlate && pool.libPlate.id == libPlateId) || (!libPlateId && pool.libPlate == null);
    133133    if (addPool)
    134134    {
     
    148148    frm.pools.disabled = false;
    149149  }
    150   poolOnBlur();
    151 }
    152 
    153 function poolOnBlur()
     150  poolOnChange();
     151}
     152
     153function poolOnChange()
    154154{
    155155  var frm = document.forms['reggie'];
     
    440440        <td class="prompt">Pools</td>
    441441        <td class="input"><select style="width:90%;" size="6"
    442             name="pools" id="pools" multiple></select>
     442            name="pools" id="pools" multiple onchange="poolOnChange()"></select>
    443443        </td>
    444444        <td class="status" id="pools.status"></td>
Note: See TracChangeset for help on using the changeset viewer.