Changeset 2108
- Timestamp:
- Oct 29, 2013, 11:10:58 AM (9 years ago)
- 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 51 51 { 52 52 var pool = pools[poolNo]; 53 54 53 // Shortcut to single-plate pools 55 54 var libPlateForPool = pool.libPlates.length == 1 ? pool.libPlates[0] : null; … … 126 125 // If a libplate is selected, only show pools that have all libraries from that plate 127 126 // 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); 129 128 if (addPool) 130 129 { -
extensions/net.sf.basedb.reggie/trunk/resources/libprep/pool_registration.jsp
r2091 r2108 130 130 // If a libplate is selected, only show pools that have all libraries from that plate 131 131 // 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); 133 133 if (addPool) 134 134 { … … 148 148 frm.pools.disabled = false; 149 149 } 150 poolOn Blur();151 } 152 153 function poolOn Blur()150 poolOnChange(); 151 } 152 153 function poolOnChange() 154 154 { 155 155 var frm = document.forms['reggie']; … … 440 440 <td class="prompt">Pools</td> 441 441 <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> 443 443 </td> 444 444 <td class="status" id="pools.status"></td>
Note: See TracChangeset
for help on using the changeset viewer.