6879 |
22 Nov 22 |
nicklas |
var Methylation = function() |
6879 |
22 Nov 22 |
nicklas |
2 |
{ |
6879 |
22 Nov 22 |
nicklas |
var meth = {}; |
6879 |
22 Nov 22 |
nicklas |
var debug = 0; |
6879 |
22 Nov 22 |
nicklas |
5 |
|
6879 |
22 Nov 22 |
nicklas |
var JOB_IMAGE = { 'DONE': 'ok.png', 'ERROR': 'error.png'}; |
6879 |
22 Nov 22 |
nicklas |
7 |
|
6879 |
22 Nov 22 |
nicklas |
var methylationItems; |
6879 |
22 Nov 22 |
nicklas |
9 |
|
6879 |
22 Nov 22 |
nicklas |
// Page initialization |
6879 |
22 Nov 22 |
nicklas |
meth.initPage = function() |
6879 |
22 Nov 22 |
nicklas |
12 |
{ |
6879 |
22 Nov 22 |
nicklas |
13 |
|
6879 |
22 Nov 22 |
nicklas |
// Step 1 |
6879 |
22 Nov 22 |
nicklas |
15 |
|
6879 |
22 Nov 22 |
nicklas |
// Navigation |
6879 |
22 Nov 22 |
nicklas |
Buttons.addClickHandler('gocancel', Wizard.cancelWizard); |
6879 |
22 Nov 22 |
nicklas |
Buttons.addClickHandler('gorestart', Wizard.restartWizard); |
6879 |
22 Nov 22 |
nicklas |
Buttons.addClickHandler('gonext', Wizard.goNextOnClick); |
6879 |
22 Nov 22 |
nicklas |
Buttons.addClickHandler('goregister', Wizard.goRegister); |
6879 |
22 Nov 22 |
nicklas |
21 |
|
6879 |
22 Nov 22 |
nicklas |
// Final registration |
6879 |
22 Nov 22 |
nicklas |
Events.addEventHandler('wizard', 'wizard-submit', meth.submit); |
6879 |
22 Nov 22 |
nicklas |
24 |
|
6879 |
22 Nov 22 |
nicklas |
Wizard.showLoadingAnimation('Loading bioassays...'); |
6879 |
22 Nov 22 |
nicklas |
var url = '../Methylation.servlet?ID='+App.getSessionId(); |
6879 |
22 Nov 22 |
nicklas |
url += '&cmd=GetUnconfirmedBetaAnalysis'; |
6879 |
22 Nov 22 |
nicklas |
Wizard.asyncJsonRequest(url, meth.initializeStep1); |
6879 |
22 Nov 22 |
nicklas |
29 |
} |
6879 |
22 Nov 22 |
nicklas |
30 |
|
6879 |
22 Nov 22 |
nicklas |
// --- Step 1 ----------------------------------- |
6879 |
22 Nov 22 |
nicklas |
meth.initializeStep1 = function(response) |
6879 |
22 Nov 22 |
nicklas |
33 |
{ |
6879 |
22 Nov 22 |
nicklas |
methylationItems = response.methylationItems; |
6879 |
22 Nov 22 |
nicklas |
if (methylationItems.length == 0) |
6879 |
22 Nov 22 |
nicklas |
36 |
{ |
6879 |
22 Nov 22 |
nicklas |
Wizard.setFatalError('No methylation items available for processing.'); |
6879 |
22 Nov 22 |
nicklas |
return; |
6879 |
22 Nov 22 |
nicklas |
39 |
} |
6879 |
22 Nov 22 |
nicklas |
40 |
|
6879 |
22 Nov 22 |
nicklas |
var html = '<table id="methylationTable">'; |
6879 |
22 Nov 22 |
nicklas |
html += '<thead class="bg-filled-100">'; |
6879 |
22 Nov 22 |
nicklas |
// Header row |
6879 |
22 Nov 22 |
nicklas |
html += '<tr>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th></th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th class="dottedleft" colspan="2">BeadChip</th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th class="dottedleft" colspan="3">Median int.</th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th class="dottedleft" colspan="4">Probes</th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th class="dottedleft" colspan="3">Peaks (Infinium I/II)</th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th class="dottedleft"></th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th class="dottedleft"></th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th class="dottedleft"></th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th class="dottedleft" colspan="2">Actions</th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th class="dottedleft">Comment</th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '</tr>'; |
6879 |
22 Nov 22 |
nicklas |
56 |
|
6879 |
22 Nov 22 |
nicklas |
html += '<tr>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th>Methylation</th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th class="dottedleft">Sentrix ID</th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th>Position</th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th class="dottedleft">Meth</th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th>Unmeth</th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th class="icon-col"></th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th class="dottedleft">Total</th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th title="Probes with detectionP-value > 0.01.">Bad¹</th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th>Rate</th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th class="icon-col"></th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th class="dottedleft">Meth</th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th>Unmeth</th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th class="icon-col"></th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th class="dottedleft">Warnings</th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th class="dottedleft">Job</th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th class="dottedleft">Files</th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th class="dottedleft"><span id="reanalyze" data-prefix="reanalyze" class="interactable link" title="Toggle selection – use CTRL, ALT or SHIFT to clear">Re-analyze</span></th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th><span id="confirm" data-prefix="confirm" class="interactable link" title="Toggle selection – use CTRL, ALT or SHIFT to clear">Confirm</span></th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<th class="dottedleft"></th>'; |
6879 |
22 Nov 22 |
nicklas |
html += '</tr>'; |
6879 |
22 Nov 22 |
nicklas |
html += '</thead>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<tbody>'; |
6879 |
22 Nov 22 |
nicklas |
for (var methNo = 0; methNo < methylationItems.length; methNo++) |
6879 |
22 Nov 22 |
nicklas |
81 |
{ |
6879 |
22 Nov 22 |
nicklas |
var m = methylationItems[methNo]; |
6879 |
22 Nov 22 |
nicklas |
var dna = m.dna; |
6879 |
22 Nov 22 |
nicklas |
var chip = m.beadChip; |
6879 |
22 Nov 22 |
nicklas |
var job = m.job; |
6879 |
22 Nov 22 |
nicklas |
var isError = job.status == 'ERROR'; |
6879 |
22 Nov 22 |
nicklas |
87 |
|
6879 |
22 Nov 22 |
nicklas |
html += '<tr class="highlight ' + (methNo % 4 < 2 ? 'evenrow' : 'oddrow') + '">'; |
6879 |
22 Nov 22 |
nicklas |
html += '<td class="prompt">'+m.name+'</td>'; |
6879 |
22 Nov 22 |
nicklas |
90 |
|
6879 |
22 Nov 22 |
nicklas |
html += '<td class="dottedleft">'+(chip ? Strings.encodeTags(chip.BeadChipId) : '-')+'</td>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<td>'+(dna ? Strings.encodeTags(dna.BeadChipPosition) : '-')+'</td>'; |
6879 |
22 Nov 22 |
nicklas |
93 |
|
6879 |
22 Nov 22 |
nicklas |
94 |
|
6879 |
22 Nov 22 |
nicklas |
html += '<td class="dottedleft">'+Reggie.formatNumber(m.MedianMeth, null, 2)+'</td>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<td>'+Reggie.formatNumber(m.MedianUnmeth, null, 2)+'</td>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<td class="icon-col">'; |
6879 |
22 Nov 22 |
nicklas |
if (m.MedianMeth != null && m.MedianUnmeth != null && (m.MedianMeth+m.MedianUnmeth<21)) |
6879 |
22 Nov 22 |
nicklas |
99 |
{ |
6879 |
22 Nov 22 |
nicklas |
html += '<img src="../images/warning_small.png" title="Mean signal<10.5">'; |
6879 |
22 Nov 22 |
nicklas |
101 |
} |
6879 |
22 Nov 22 |
nicklas |
html += '</td>'; |
6879 |
22 Nov 22 |
nicklas |
103 |
|
6879 |
22 Nov 22 |
nicklas |
html += '<td class="dottedleft">'+Reggie.formatNumber(m.ProbesRaw, null, 2)+'</td>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<td>'+Reggie.formatNumber(m.ProbesBad, null, 2)+'</td>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<td>'+(m.ProbesRate == null ? '':Reggie.formatNumber(m.ProbesRate*100, '%', 2))+'</td>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<td class="icon-col">'; |
6879 |
22 Nov 22 |
nicklas |
if (m.ProbesRate != null && m.ProbesRate<0.99) |
6879 |
22 Nov 22 |
nicklas |
109 |
{ |
6879 |
22 Nov 22 |
nicklas |
html += '<img src="../images/warning_small.png" title=">1% probes with p>0.01">'; |
6879 |
22 Nov 22 |
nicklas |
111 |
} |
6879 |
22 Nov 22 |
nicklas |
html += '</td>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<td class="dottedleft">'; |
6879 |
22 Nov 22 |
nicklas |
var peakWarning = null; |
6879 |
22 Nov 22 |
nicklas |
if (m.PeakMethI != null || m.PeakMethII != null) |
6879 |
22 Nov 22 |
nicklas |
116 |
{ |
6879 |
22 Nov 22 |
nicklas |
if ((m.PeakMethI != null && m.PeakMethI < 0.8) || (m.peakMethII && m.PeakMethII < 0.8)) |
6879 |
22 Nov 22 |
nicklas |
118 |
{ |
6879 |
22 Nov 22 |
nicklas |
peakWarning = 'Peak Meth <0.8'; |
6879 |
22 Nov 22 |
nicklas |
120 |
} |
6879 |
22 Nov 22 |
nicklas |
html += Reggie.formatNumber(m.PeakMethI, null, 1)+'/'+Reggie.formatNumber(m.PeakMethII, null, 1); |
6879 |
22 Nov 22 |
nicklas |
122 |
} |
6879 |
22 Nov 22 |
nicklas |
html += '</td>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<td>'; |
6879 |
22 Nov 22 |
nicklas |
if (m.PeakUnmethI != null || m.PeakUnmethII != null) |
6879 |
22 Nov 22 |
nicklas |
126 |
{ |
6879 |
22 Nov 22 |
nicklas |
if ((m.PeakUnmethI != null && m.PeakUnmethI > 0.2) || (m.PeakUnmethII != null && m.PeakUnmethII > 0.2)) |
6879 |
22 Nov 22 |
nicklas |
128 |
{ |
6879 |
22 Nov 22 |
nicklas |
peakWarning = 'Peak Unmeth >0.2'; |
6879 |
22 Nov 22 |
nicklas |
130 |
} |
6879 |
22 Nov 22 |
nicklas |
html += Reggie.formatNumber(m.PeakUnmethI, null, 1)+'/'+Reggie.formatNumber(m.PeakUnmethII, null, 1); |
6879 |
22 Nov 22 |
nicklas |
132 |
} |
6879 |
22 Nov 22 |
nicklas |
html += '</td>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<td class="icon-col">'; |
6879 |
22 Nov 22 |
nicklas |
if (m.adjustmentPlots) |
6879 |
22 Nov 22 |
nicklas |
136 |
{ |
6879 |
22 Nov 22 |
nicklas |
html += '<span class="link pdf-link" data-file-id="'+m.adjustmentPlots.id+'" data-item-id="'+m.id+'" title="View adjustment plots'+(peakWarning?': '+peakWarning:'')+'">'; |
6879 |
22 Nov 22 |
nicklas |
html += '<img src="../images/'+(peakWarning?'pdffile_warning.png':'pdffile.png')+'">'; |
6879 |
22 Nov 22 |
nicklas |
html += '</span>'; |
6879 |
22 Nov 22 |
nicklas |
140 |
} |
6879 |
22 Nov 22 |
nicklas |
html += '</td>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<td class="dottedleft">'+Strings.encodeTags(m.AnalysisFlag)+'</td>'; |
6879 |
22 Nov 22 |
nicklas |
143 |
|
6879 |
22 Nov 22 |
nicklas |
html += '<td class="dottedleft">'; |
6879 |
22 Nov 22 |
nicklas |
html += '<span class="link item-link" data-item-type="JOB" data-item-id="'+job.id+'" title="'+Strings.encodeTags(job.statusMessage)+'"><img src="../images/'+JOB_IMAGE[job.status]+'"></span>'; |
6879 |
22 Nov 22 |
nicklas |
html += '</td>'; |
6879 |
22 Nov 22 |
nicklas |
if (m.DataFilesFolder && job.server) |
6879 |
22 Nov 22 |
nicklas |
148 |
{ |
6879 |
22 Nov 22 |
nicklas |
html += '<td class="dottedleft">'; |
6879 |
22 Nov 22 |
nicklas |
html += '<span class="link file-link" data-server="'+Strings.encodeTags(job.server)+'" data-folder="'+Strings.encodeTags(m.DataFilesFolder)+'" data-item-id="'+m.id+'" title="View generated files"><img src="../images/remote_folder.png"></span>'; |
6879 |
22 Nov 22 |
nicklas |
html += '</td>'; |
6879 |
22 Nov 22 |
nicklas |
152 |
} |
6879 |
22 Nov 22 |
nicklas |
else |
6879 |
22 Nov 22 |
nicklas |
154 |
{ |
6879 |
22 Nov 22 |
nicklas |
html += '<td class="dottedleft">-</td>'; |
6879 |
22 Nov 22 |
nicklas |
156 |
} |
6879 |
22 Nov 22 |
nicklas |
157 |
|
6879 |
22 Nov 22 |
nicklas |
var reanalyzeChecked = isError ? ' checked' : ''; |
6879 |
22 Nov 22 |
nicklas |
var confirmChecked = !isError ? ' checked' : ''; |
6879 |
22 Nov 22 |
nicklas |
var confirmDisabled = ''; |
6879 |
22 Nov 22 |
nicklas |
html += '<td class="dottedleft"><input type="checkbox" name="reanalyze.'+m.id+'"'+reanalyzeChecked+'></td>'; |
6879 |
22 Nov 22 |
nicklas |
html += '<td><input type="checkbox" name="confirm.'+m.id+'"'+confirmChecked+confirmDisabled+'></td>'; |
6880 |
22 Nov 22 |
nicklas |
html += '<td class="dottedleft comment"><input type="text" name="comment.'+m.id+'" value="'+Strings.encodeTags(m.comment)+'"></td>'; |
6879 |
22 Nov 22 |
nicklas |
html += '</tr>'; |
6879 |
22 Nov 22 |
nicklas |
165 |
|
6879 |
22 Nov 22 |
nicklas |
166 |
} |
6879 |
22 Nov 22 |
nicklas |
html += '</tbody>'; |
6879 |
22 Nov 22 |
nicklas |
html += '</table>'; |
6879 |
22 Nov 22 |
nicklas |
Doc.element('methylationItems').innerHTML = html; |
6879 |
22 Nov 22 |
nicklas |
170 |
|
6879 |
22 Nov 22 |
nicklas |
Events.addEventHandler('reanalyze', 'click', meth.toggleSelection); |
6879 |
22 Nov 22 |
nicklas |
Events.addEventHandler('confirm', 'click', meth.toggleSelection); |
6879 |
22 Nov 22 |
nicklas |
173 |
|
6879 |
22 Nov 22 |
nicklas |
// Add click handler to items |
6879 |
22 Nov 22 |
nicklas |
var clickableItems = document.getElementsByClassName('item-link'); |
6879 |
22 Nov 22 |
nicklas |
for (var i = 0; i < clickableItems.length; i++) |
6879 |
22 Nov 22 |
nicklas |
177 |
{ |
6879 |
22 Nov 22 |
nicklas |
Events.addEventHandler(clickableItems[i], 'click', Items.itemOnClick); |
6879 |
22 Nov 22 |
nicklas |
179 |
} |
6879 |
22 Nov 22 |
nicklas |
180 |
|
6879 |
22 Nov 22 |
nicklas |
// Add click handler to file links |
6879 |
22 Nov 22 |
nicklas |
var clickableItems = document.getElementsByClassName('file-link'); |
6879 |
22 Nov 22 |
nicklas |
for (var i = 0; i < clickableItems.length; i++) |
6879 |
22 Nov 22 |
nicklas |
184 |
{ |
6879 |
22 Nov 22 |
nicklas |
Events.addEventHandler(clickableItems[i], 'click', meth.fileLinkOnClick); |
6879 |
22 Nov 22 |
nicklas |
186 |
} |
6879 |
22 Nov 22 |
nicklas |
187 |
|
6879 |
22 Nov 22 |
nicklas |
// Add click handler to PDF files |
6879 |
22 Nov 22 |
nicklas |
var clickableItems = document.getElementsByClassName('pdf-link'); |
6879 |
22 Nov 22 |
nicklas |
for (var i = 0; i < clickableItems.length; i++) |
6879 |
22 Nov 22 |
nicklas |
191 |
{ |
6879 |
22 Nov 22 |
nicklas |
Events.addEventHandler(clickableItems[i], 'click', Files.viewFileOnClick); |
6879 |
22 Nov 22 |
nicklas |
193 |
} |
6879 |
22 Nov 22 |
nicklas |
194 |
|
6879 |
22 Nov 22 |
nicklas |
Doc.show('step-1'); |
6879 |
22 Nov 22 |
nicklas |
Doc.show('goregister'); |
6879 |
22 Nov 22 |
nicklas |
197 |
} |
6879 |
22 Nov 22 |
nicklas |
198 |
|
6879 |
22 Nov 22 |
nicklas |
meth.fileLinkOnClick = function(event) |
6879 |
22 Nov 22 |
nicklas |
200 |
{ |
6879 |
22 Nov 22 |
nicklas |
var folder = Data.get(event.currentTarget, 'folder'); |
6879 |
22 Nov 22 |
nicklas |
var server = Data.get(event.currentTarget, 'server'); |
6879 |
22 Nov 22 |
nicklas |
var itemId = Data.get(event.currentTarget, 'item-id'); |
6879 |
22 Nov 22 |
nicklas |
server = server.replace(/\s*\[.*\]/, ''); |
6879 |
22 Nov 22 |
nicklas |
var url = '../analysis/view_remote_files.jsp?ID=' + App.getSessionId(); |
6879 |
22 Nov 22 |
nicklas |
url += '&clusterId='+server; |
6879 |
22 Nov 22 |
nicklas |
url += '&path='+encodeURIComponent(folder); |
6879 |
22 Nov 22 |
nicklas |
url += '&itemType=DERIVEDBIOASSAY&itemId='+itemId; |
6879 |
22 Nov 22 |
nicklas |
Dialogs.openPopup(url, 'ViewProjectFiles', 750, 500); |
6879 |
22 Nov 22 |
nicklas |
210 |
} |
6879 |
22 Nov 22 |
nicklas |
211 |
|
6879 |
22 Nov 22 |
nicklas |
meth.toggleSelection = function(event) |
6879 |
22 Nov 22 |
nicklas |
213 |
{ |
6879 |
22 Nov 22 |
nicklas |
var prefix = Data.get(event.currentTarget, 'prefix'); |
6879 |
22 Nov 22 |
nicklas |
var specialKey = event.altKey || event.ctrlKey || event.shiftKey; |
6879 |
22 Nov 22 |
nicklas |
216 |
|
6879 |
22 Nov 22 |
nicklas |
var frm = document.forms['reggie']; |
6879 |
22 Nov 22 |
nicklas |
for (var methNo = 0; methNo < methylationItems.length; methNo++) |
6879 |
22 Nov 22 |
nicklas |
219 |
{ |
6879 |
22 Nov 22 |
nicklas |
var m = methylationItems[methNo]; |
6879 |
22 Nov 22 |
nicklas |
var chk = frm[prefix+'.'+m.id]; |
6879 |
22 Nov 22 |
nicklas |
if (chk && !chk.disabled) |
6879 |
22 Nov 22 |
nicklas |
223 |
{ |
6879 |
22 Nov 22 |
nicklas |
chk.checked = specialKey ? false : !chk.checked; |
6879 |
22 Nov 22 |
nicklas |
225 |
} |
6879 |
22 Nov 22 |
nicklas |
226 |
} |
6879 |
22 Nov 22 |
nicklas |
227 |
} |
6879 |
22 Nov 22 |
nicklas |
228 |
|
6879 |
22 Nov 22 |
nicklas |
meth.submit = function() |
6879 |
22 Nov 22 |
nicklas |
230 |
{ |
6879 |
22 Nov 22 |
nicklas |
var frm = document.forms['reggie']; |
6879 |
22 Nov 22 |
nicklas |
var submitInfo = {}; |
6879 |
22 Nov 22 |
nicklas |
233 |
|
6879 |
22 Nov 22 |
nicklas |
var all = []; |
6879 |
22 Nov 22 |
nicklas |
submitInfo.methylationItems = all; |
6879 |
22 Nov 22 |
nicklas |
for (var methNo = 0; methNo < methylationItems.length; methNo++) |
6879 |
22 Nov 22 |
nicklas |
237 |
{ |
6879 |
22 Nov 22 |
nicklas |
var m = methylationItems[methNo]; |
6879 |
22 Nov 22 |
nicklas |
var tmp = {}; |
6879 |
22 Nov 22 |
nicklas |
tmp.id = m.id; |
6879 |
22 Nov 22 |
nicklas |
241 |
|
6879 |
22 Nov 22 |
nicklas |
tmp.reanalyze = frm['reanalyze.'+m.id].checked; |
6879 |
22 Nov 22 |
nicklas |
tmp.confirm = frm['confirm.'+m.id].checked; |
6879 |
22 Nov 22 |
nicklas |
tmp.comment = frm['comment.'+m.id].value; |
6879 |
22 Nov 22 |
nicklas |
245 |
|
6879 |
22 Nov 22 |
nicklas |
all[all.length] = tmp; |
6879 |
22 Nov 22 |
nicklas |
247 |
} |
6879 |
22 Nov 22 |
nicklas |
248 |
|
6879 |
22 Nov 22 |
nicklas |
var url = '../Methylation.servlet?ID='+App.getSessionId(); |
6880 |
22 Nov 22 |
nicklas |
url += '&cmd=ConfirmBetaAnalysis'; |
6879 |
22 Nov 22 |
nicklas |
Wizard.showLoadingAnimation('Performing registration...'); |
6879 |
22 Nov 22 |
nicklas |
Wizard.asyncJsonRequest(url, meth.submissionResults, 'POST', JSON.stringify(submitInfo)); |
6879 |
22 Nov 22 |
nicklas |
253 |
} |
6879 |
22 Nov 22 |
nicklas |
254 |
|
6879 |
22 Nov 22 |
nicklas |
meth.submissionResults = function(response) |
6879 |
22 Nov 22 |
nicklas |
256 |
{ |
6879 |
22 Nov 22 |
nicklas |
Wizard.showFinalMessage(response.messages); |
6879 |
22 Nov 22 |
nicklas |
Doc.show('gorestart'); |
6879 |
22 Nov 22 |
nicklas |
259 |
} |
6879 |
22 Nov 22 |
nicklas |
260 |
|
6879 |
22 Nov 22 |
nicklas |
return meth; |
6879 |
22 Nov 22 |
nicklas |
262 |
}(); |
6879 |
22 Nov 22 |
nicklas |
263 |
|
6879 |
22 Nov 22 |
nicklas |
Doc.onLoad(Methylation.initPage); |
6879 |
22 Nov 22 |
nicklas |
265 |
|