Changeset 2073
- Timestamp:
- Oct 16, 2013, 9:33:55 AM (9 years ago)
- Location:
- extensions/net.sf.basedb.reggie/trunk/resources/libprep
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/resources/libprep/cdna_registration.jsp
r1999 r2073 141 141 } 142 142 143 if (document.getElementById('outcomeFailed').checked) 144 { 145 setInnerHTML('gonext.message', '<input type="checkbox" name="verifyFailure" onclick="verifyFailureOnClick()"> Check to verify registration of failure'); 146 Main.addClass(document.getElementById('goregister'), 'disabled'); 147 } 148 143 149 frm.synthesisDate.focus(); 144 150 } … … 219 225 function step2IsValid() 220 226 { 227 var frm = document.forms['reggie']; 221 228 if (!commentsIsValid) return false; 222 229 223 230 if (dateIsValid['synthesisDate'] == false) return false; 231 if (document.getElementById('outcomeFailed').checked && !frm.verifyFailure.checked) return false; 224 232 225 233 return true; 234 } 235 236 function verifyFailureOnClick() 237 { 238 var frm = document.forms['reggie']; 239 var checked = frm.verifyFailure.checked; 240 Main.addOrRemoveClass(document.getElementById('goregister'), 'disabled', !checked); 226 241 } 227 242 … … 234 249 Main.hide('goregister'); 235 250 Main.hide('gocancel'); 251 Main.hide('gonext.message'); 236 252 Main.addClass(document.getElementById('step.2.section'), 'disabled'); 237 253 -
extensions/net.sf.basedb.reggie/trunk/resources/libprep/flowcell_registration.jsp
r2070 r2073 122 122 var frm = document.forms['reggie']; 123 123 var failed = frm.outcome[1].checked; 124 if (failed && !frm.verifyFailure.checked) return false; 124 125 125 126 var index = 0; … … 139 140 } 140 141 142 function verifyFailureOnClick() 143 { 144 var frm = document.forms['reggie']; 145 var checked = frm.verifyFailure.checked; 146 Main.addOrRemoveClass(document.getElementById('goregister'), 'disabled', !checked); 147 } 148 141 149 function step3IsValid() 142 150 { … … 207 215 Main.show('goregister'); 208 216 Main.hide('step.3.box'); 217 218 setInnerHTML('gonext.message', '<input type="checkbox" name="verifyFailure" onclick="verifyFailureOnClick()"> Check to verify registration of failure'); 219 Main.addClass(document.getElementById('goregister'), 'disabled'); 209 220 } 210 221 … … 518 529 } 519 530 520 521 531 Main.hide('goregister'); 522 532 Main.hide('gocancel'); 533 Main.hide('gonext.message'); 523 534 524 535 var submitInfo = {}; … … 692 703 <input type="radio" name="outcome" id="outcomeSuccess" 693 704 onchange="outcomeOnChange()" checked><label for="outcomeSuccess">Success</label> - sequencing has started<br> 694 <input type="radio" name="outcome" id="outcomeFailed" disabled695 onchange="outcomeOnChange()"><label for="outcomeFailed" class="disabled">Failure</label> - no sequencing (TODO)705 <input type="radio" name="outcome" id="outcomeFailed" 706 onchange="outcomeOnChange()"><label for="outcomeFailed">Failure</label> - no sequencing 696 707 </td> 697 708 <td class="status"></td> -
extensions/net.sf.basedb.reggie/trunk/resources/libprep/lib_registration.jsp
r2039 r2073 195 195 frm.libProtocol[0] = new Option('- none -', ''); 196 196 } 197 198 if (document.getElementById('outcomeFailed').checked) 199 { 200 setInnerHTML('gonext.message', '<input type="checkbox" name="verifyFailure" onclick="verifyFailureOnClick()"> Check to verify registration of failure'); 201 Main.addClass(document.getElementById('goregister'), 'disabled'); 202 } 203 197 204 } 198 205 … … 443 450 function step2IsValid() 444 451 { 452 var frm = document.forms['reggie']; 445 453 if (dateIsValid['amplificationDate'] == false) return false; 446 454 if (dateIsValid['cleanupDate'] == false) return false; … … 449 457 if (failed) 450 458 { 459 if (!frm.verifyFailure.checked) return false; 451 460 return libCommentsIsValid; 452 461 } … … 457 466 } 458 467 468 function verifyFailureOnClick() 469 { 470 var frm = document.forms['reggie']; 471 var checked = frm.verifyFailure.checked; 472 Main.addOrRemoveClass(document.getElementById('goregister'), 'disabled', !checked); 473 } 474 459 475 function goRegister() 460 476 { 461 477 if (!step2IsValid()) return; 462 478 463 479 Main.hide('messages'); 464 480 Main.hide('goregister'); 465 481 Main.hide('gocancel'); 482 Main.hide('gonext.message'); 466 483 467 484 var frm = document.forms['reggie']; -
extensions/net.sf.basedb.reggie/trunk/resources/libprep/mrna_registration.jsp
r1998 r2073 147 147 } 148 148 149 if (document.getElementById('outcomeFailed').checked) 150 { 151 setInnerHTML('gonext.message', '<input type="checkbox" name="verifyFailure" onclick="verifyFailureOnClick()"> Check to verify registration of failure'); 152 Main.addClass(document.getElementById('goregister'), 'disabled'); 153 } 154 149 155 frm.dilutionDate.focus(); 150 156 } … … 299 305 function step2IsValid() 300 306 { 307 var frm = document.forms['reggie']; 301 308 if (!pdfIsValid || !commentsIsValid) return false; 302 309 … … 306 313 if (dateIsValid['cleanupDate'] == false) return false; 307 314 315 if (document.getElementById('outcomeFailed').checked && !frm.verifyFailure.checked) return false; 316 308 317 return true; 318 } 319 320 function verifyFailureOnClick() 321 { 322 var frm = document.forms['reggie']; 323 var checked = frm.verifyFailure.checked; 324 Main.addOrRemoveClass(document.getElementById('goregister'), 'disabled', !checked); 309 325 } 310 326 … … 318 334 Main.hide('goregister'); 319 335 Main.hide('gocancel'); 336 Main.hide('gonext.message'); 320 337 Main.addClass(document.getElementById('step.2.section'), 'disabled'); 321 338
Note: See TracChangeset
for help on using the changeset viewer.