Changeset 6730
- Timestamp:
- Feb 13, 2015, 10:25:31 AM (7 years ago)
- Location:
- trunk/www/views/experiments
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/views/experiments/experiments.js
r6696 r6730 171 171 ' raw bioassays have a value for this experimental factor">'; 172 172 } 173 else if (fv.disableInheritance) 174 { 175 status = '<img src="../../images/notify.png" alt="!"> Inheritance not allowed'; 176 } 173 177 else 174 178 { 175 179 numIncomplete++; 176 180 var numMissing = numRawBioAssays - fv.numRawBioAssaysWithFactor; 177 status = '<table><tr>'; 178 status += '<td><img src="../../images/warning.png" alt="!"'; 179 status += ' title="' + numMissing + ' raw bioassays are missing a value for this experimental factor"></td>'; 180 status += '<td style="text-align: center;">'; 181 status = '<img src="../../images/warning.png" alt="!"'; 182 status += ' title="' + numMissing + ' raw bioassays are missing a value for this experimental factor">'; 181 183 status += '<input type="checkbox" name="autoinherit" id="autoinherit'+fv.id+'" value="'+fv.id+'" checked'; 182 184 status += ' title="Select to automatically inherit annotations from parents"></td>'; 183 status += '<td> <label for="autoinherit'+fv.id+'">' + numMissing + ' missing</label></td>' 184 status += '</tr></table>'; 185 status += '<label for="autoinherit'+fv.id+'">' + numMissing + ' missing</label>'; 185 186 } 186 187 statusDiv.innerHTML = status; 187 188 188 } 189 189 190 190 if (numIncomplete > 0) 191 191 { 192 var checkAll = '<table><tr>'; 193 checkAll += '<td></td>'; 194 checkAll += '<td style="text-align: center;">'; 192 var checkAll = ''; 195 193 checkAll += '<span id="check.uncheck" data-table-id="tbl.experimentalFactors" data-regexp="autoinherit" class="link" title="Check/uncheck all">'; 196 checkAll += '<img src="../../images/check_uncheck.png" alt="x"></span></td>'; 197 checkAll += '<td><img src="../../images/bullet.png" alt="*"></td>'; 198 checkAll += '<td><span id="autoInherit" class="link"'; 194 checkAll += '<img src="../../images/check_uncheck.png" alt="x"></span>'; 195 checkAll += ' <span id="autoInherit" class="link"'; 199 196 checkAll += ' title="Automatically try to inherit values for the selected experimental factors from parent items">'; 200 checkAll += 'Auto-inherit</span></td>' 201 checkAll += '</tr></table>'; 197 checkAll += 'Auto-inherit…</span>' 202 198 Doc.element('tbl.experimentalFactors.status').innerHTML = checkAll; 203 199 Doc.show('warning.missing'); … … 205 201 Events.addEventHandler('check.uncheck', 'click', Table.checkUncheckOnClick); 206 202 Events.addEventHandler('autoInherit', 'click', experiments.autoInheritFactors); 207 208 203 } 209 204 } -
trunk/www/views/experiments/view_experiment.jsp
r6605 r6730 631 631 JSONObject jsonAt = new JSONObject(); 632 632 jsonAt.put("id", at.getId()); 633 jsonAt.put("disableInheritance", at.getDisableInheritance() ? 1 : 0); 633 634 jsonAt.put("numRawBioAssaysWithFactor", factorValuesCount.get(at)); 634 635
Note: See TracChangeset
for help on using the changeset viewer.