7436 |
15 Nov 23 |
nicklas |
var VCall = function() |
7436 |
15 Nov 23 |
nicklas |
2 |
{ |
7436 |
15 Nov 23 |
nicklas |
var vcall = {}; |
7436 |
15 Nov 23 |
nicklas |
var debug = 0; |
7436 |
15 Nov 23 |
nicklas |
5 |
|
7436 |
15 Nov 23 |
nicklas |
var JOB_IMAGE = { 'DONE': 'ok.png', 'ERROR': 'error.png'}; |
7436 |
15 Nov 23 |
nicklas |
var rawBioAssays; |
7436 |
15 Nov 23 |
nicklas |
8 |
|
7436 |
15 Nov 23 |
nicklas |
// Page initialization |
7436 |
15 Nov 23 |
nicklas |
vcall.initPage = function() |
7436 |
15 Nov 23 |
nicklas |
11 |
{ |
7436 |
15 Nov 23 |
nicklas |
// Step 1 |
7436 |
15 Nov 23 |
nicklas |
Events.addEventHandler('deleteItemsCreatedByFailedJobs', 'change', vcall.deleteItemsCreatedByFailedJobsOnChange); |
7436 |
15 Nov 23 |
nicklas |
14 |
|
7436 |
15 Nov 23 |
nicklas |
// Navigation |
7436 |
15 Nov 23 |
nicklas |
Buttons.addClickHandler('gocancel', Wizard.cancelWizard); |
7436 |
15 Nov 23 |
nicklas |
Buttons.addClickHandler('gorestart', Wizard.restartWizard); |
7436 |
15 Nov 23 |
nicklas |
Buttons.addClickHandler('gonext', Wizard.goNextOnClick); |
7436 |
15 Nov 23 |
nicklas |
Buttons.addClickHandler('goregister', Wizard.goRegister); |
7436 |
15 Nov 23 |
nicklas |
20 |
|
7436 |
15 Nov 23 |
nicklas |
// Final registration |
7436 |
15 Nov 23 |
nicklas |
Events.addEventHandler('wizard', 'wizard-submit', vcall.submit); |
7436 |
15 Nov 23 |
nicklas |
23 |
|
7436 |
15 Nov 23 |
nicklas |
Wizard.showLoadingAnimation('Loading bioassays...'); |
7436 |
15 Nov 23 |
nicklas |
var url = '../WgsVariantCalling.servlet?ID='+App.getSessionId(); |
7436 |
15 Nov 23 |
nicklas |
url += '&cmd=GetUnconfirmed'; |
7436 |
15 Nov 23 |
nicklas |
Wizard.asyncJsonRequest(url, vcall.initializeStep1); |
7436 |
15 Nov 23 |
nicklas |
28 |
} |
7436 |
15 Nov 23 |
nicklas |
29 |
|
7436 |
15 Nov 23 |
nicklas |
// --- Step 1 ----------------------------------- |
7436 |
15 Nov 23 |
nicklas |
vcall.initializeStep1 = function(response) |
7436 |
15 Nov 23 |
nicklas |
32 |
{ |
7436 |
15 Nov 23 |
nicklas |
rawBioAssays = response.rawBioAssays; |
7436 |
15 Nov 23 |
nicklas |
if (rawBioAssays.length == 0) |
7436 |
15 Nov 23 |
nicklas |
35 |
{ |
7436 |
15 Nov 23 |
nicklas |
Wizard.setFatalError('No raw bioassays available for processing.'); |
7436 |
15 Nov 23 |
nicklas |
return; |
7436 |
15 Nov 23 |
nicklas |
38 |
} |
7436 |
15 Nov 23 |
nicklas |
39 |
|
7436 |
15 Nov 23 |
nicklas |
var html = '<table id="rawBioAssaysTable">'; |
7436 |
15 Nov 23 |
nicklas |
html += '<thead class="bg-filled-100">'; |
7436 |
15 Nov 23 |
nicklas |
// Header row |
7436 |
15 Nov 23 |
nicklas |
html += '<tr>'; |
7436 |
15 Nov 23 |
nicklas |
html += '<th></th>'; |
7436 |
15 Nov 23 |
nicklas |
html += '<th class="dottedleft"></th>'; |
7440 |
16 Nov 23 |
nicklas |
html += '<th class="dottedleft"></th>'; |
7440 |
16 Nov 23 |
nicklas |
html += '<th>Panel</th>'; |
7440 |
16 Nov 23 |
nicklas |
html += '<th colspan="4">Variant calling</th>' |
7436 |
15 Nov 23 |
nicklas |
html += '<th class="dottedleft" colspan="2">Actions</th>'; |
7436 |
15 Nov 23 |
nicklas |
html += '<th class="dottedleft">Comment</th>'; |
7436 |
15 Nov 23 |
nicklas |
html += '</tr>'; |
7436 |
15 Nov 23 |
nicklas |
52 |
|
7436 |
15 Nov 23 |
nicklas |
html += '<tr>'; |
7436 |
15 Nov 23 |
nicklas |
html += '<th>Variant call</th>'; |
7436 |
15 Nov 23 |
nicklas |
html += '<th class="dottedleft">Normal alignment</th>'; |
7436 |
15 Nov 23 |
nicklas |
html += '<th class="dottedleft">Job</th>' |
7440 |
16 Nov 23 |
nicklas |
html += '<th>of normals</th>'; |
7436 |
15 Nov 23 |
nicklas |
html += '<th>Callable</th>'; |
7436 |
15 Nov 23 |
nicklas |
html += '<th>Raw</th>'; |
7436 |
15 Nov 23 |
nicklas |
html += '<th>Filtered</th>'; |
7436 |
15 Nov 23 |
nicklas |
html += '<th>Files</th>'; |
7436 |
15 Nov 23 |
nicklas |
html += '<th class="dottedleft"><span id="rerun" data-prefix="rerun" class="interactable link" title="Toggle selection – use CTRL, ALT or SHIFT to clear">Re-run</span></th>'; |
7436 |
15 Nov 23 |
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>'; |
7436 |
15 Nov 23 |
nicklas |
html += '<th class="dottedleft"></th>'; |
7436 |
15 Nov 23 |
nicklas |
html += '</tr>'; |
7436 |
15 Nov 23 |
nicklas |
html += '</thead>'; |
7436 |
15 Nov 23 |
nicklas |
html += '<tbody>'; |
7436 |
15 Nov 23 |
nicklas |
var numWithError = 0; |
7436 |
15 Nov 23 |
nicklas |
for (var rawNo = 0; rawNo < rawBioAssays.length; rawNo++) |
7436 |
15 Nov 23 |
nicklas |
70 |
{ |
7436 |
15 Nov 23 |
nicklas |
var raw = rawBioAssays[rawNo]; |
7436 |
15 Nov 23 |
nicklas |
var normal = raw.normal; |
7436 |
15 Nov 23 |
nicklas |
73 |
|
7436 |
15 Nov 23 |
nicklas |
var vcallJob = raw.vcallJob; |
7436 |
15 Nov 23 |
nicklas |
var isError = !raw.vcfFile || raw.VariantsPassedFilter == null; |
7436 |
15 Nov 23 |
nicklas |
76 |
|
7436 |
15 Nov 23 |
nicklas |
html += '<tr class="highlight ' + (rawNo % 4 < 2 ? 'evenrow' : 'oddrow') + '">'; |
7436 |
15 Nov 23 |
nicklas |
html += '<td class="prompt if-yellow">'+Strings.encodeTags(raw.name)+'</td>'; |
7436 |
15 Nov 23 |
nicklas |
html += '<td class="dottedleft">'+(normal ? Strings.encodeTags(normal.name) : '-') +'</td>'; |
7436 |
15 Nov 23 |
nicklas |
80 |
|
7436 |
15 Nov 23 |
nicklas |
html += '<td class="dottedleft">'; |
7436 |
15 Nov 23 |
nicklas |
if (vcallJob) |
7436 |
15 Nov 23 |
nicklas |
83 |
{ |
7436 |
15 Nov 23 |
nicklas |
isError |= vcallJob.status == 'ERROR'; |
7436 |
15 Nov 23 |
nicklas |
var image = JOB_IMAGE[vcallJob.status]; |
7436 |
15 Nov 23 |
nicklas |
if (!isError && !raw.vcfFile) image = 'warning.png'; |
7436 |
15 Nov 23 |
nicklas |
html += '<span class="link item-link" data-item-type="JOB" data-item-id="'+vcallJob.id+'" title="'+Strings.encodeTags(vcallJob.statusMessage)+'"><img src="../images/'+image+'"></span>'; |
7436 |
15 Nov 23 |
nicklas |
88 |
} |
7436 |
15 Nov 23 |
nicklas |
html += '</td>'; |
7440 |
16 Nov 23 |
nicklas |
html += '<td>'+Strings.encodeTags(raw.PanelOfNormals)+'</td>'; |
7436 |
15 Nov 23 |
nicklas |
html += '<td>'+Reggie.formatCount(raw.CallableBases, '-')+'</td>'; |
7436 |
15 Nov 23 |
nicklas |
html += '<td>'+Reggie.formatCount(raw.VariantsRaw, '-')+'</td>'; |
7436 |
15 Nov 23 |
nicklas |
html += '<td>'+Reggie.formatCount(raw.VariantsPassedFilter); |
7436 |
15 Nov 23 |
nicklas |
if (raw.vcfFile) |
7436 |
15 Nov 23 |
nicklas |
95 |
{ |
7436 |
15 Nov 23 |
nicklas |
html += ' <span class="link vcf-link" data-file-id="'+raw.vcfFile.id+'" data-item-id="'+raw.id+'" title="View summary for the variants"><img src="../images/vcf_file.png" style="margin-left: 2px;"></span>'; |
7436 |
15 Nov 23 |
nicklas |
97 |
} |
7436 |
15 Nov 23 |
nicklas |
html += '</td>'; |
7436 |
15 Nov 23 |
nicklas |
99 |
|
7436 |
15 Nov 23 |
nicklas |
if (raw.DataFilesFolder && vcallJob && vcallJob.server) |
7436 |
15 Nov 23 |
nicklas |
101 |
{ |
7436 |
15 Nov 23 |
nicklas |
html += '<td>'; |
7436 |
15 Nov 23 |
nicklas |
html += '<span class="link file-link" data-server="'+Strings.encodeTags(vcallJob.server)+'" data-folder="'+Strings.encodeTags(raw.DataFilesFolder)+'" data-item-id="'+raw.id+'" title="View generated files"><img src="../images/remote_folder.png"></span>'; |
7436 |
15 Nov 23 |
nicklas |
html += '</td>'; |
7436 |
15 Nov 23 |
nicklas |
105 |
} |
7436 |
15 Nov 23 |
nicklas |
else |
7436 |
15 Nov 23 |
nicklas |
107 |
{ |
7436 |
15 Nov 23 |
nicklas |
html += '<td>-</td>'; |
7436 |
15 Nov 23 |
nicklas |
109 |
} |
7436 |
15 Nov 23 |
nicklas |
// Do not allow flagging external or stratagene |
7436 |
15 Nov 23 |
nicklas |
var confirmChecked = !isError ? ' checked' : ''; |
7436 |
15 Nov 23 |
nicklas |
var reRunChecked = isError ? ' checked' : ''; |
7436 |
15 Nov 23 |
nicklas |
var confirmDisabled = isError ? ' disabled' : ''; |
7436 |
15 Nov 23 |
nicklas |
if (isError) numWithError++; |
7436 |
15 Nov 23 |
nicklas |
115 |
|
7436 |
15 Nov 23 |
nicklas |
html += '<td class="dottedleft"><input type="checkbox" name="rerun.'+raw.id+'" id="rerun.'+raw.id+'" data-item-id="'+raw.id+'"'+reRunChecked+'></td>'; |
7436 |
15 Nov 23 |
nicklas |
html += '<td><input type="checkbox" name="confirm.'+raw.id+'" id="confirm.'+raw.id+'" data-item-id="'+raw.id+'"'+confirmChecked+confirmDisabled+'></td>'; |
7436 |
15 Nov 23 |
nicklas |
html += '<td class="dottedleft comment"><input type="text" name="comment.'+raw.id+'" id="comment.'+raw.id+'" data-item-id="'+raw.id+'"></td>'; |
7436 |
15 Nov 23 |
nicklas |
html += '</tr>'; |
7436 |
15 Nov 23 |
nicklas |
120 |
} |
7436 |
15 Nov 23 |
nicklas |
html += '</tbody>'; |
7436 |
15 Nov 23 |
nicklas |
html += '</table>'; |
7436 |
15 Nov 23 |
nicklas |
Doc.element('rawBioAssays').innerHTML = html; |
7436 |
15 Nov 23 |
nicklas |
124 |
|
7436 |
15 Nov 23 |
nicklas |
Events.addEventHandler('rerun', 'click', vcall.toggleSelection); |
7436 |
15 Nov 23 |
nicklas |
Events.addEventHandler('confirm', 'click', vcall.toggleSelection); |
7436 |
15 Nov 23 |
nicklas |
127 |
|
7436 |
15 Nov 23 |
nicklas |
// Add click handler to items |
7436 |
15 Nov 23 |
nicklas |
var clickableItems = document.getElementsByClassName('item-link'); |
7436 |
15 Nov 23 |
nicklas |
for (var i = 0; i < clickableItems.length; i++) |
7436 |
15 Nov 23 |
nicklas |
131 |
{ |
7436 |
15 Nov 23 |
nicklas |
Events.addEventHandler(clickableItems[i], 'click', Items.itemOnClick); |
7436 |
15 Nov 23 |
nicklas |
133 |
} |
7436 |
15 Nov 23 |
nicklas |
134 |
|
7436 |
15 Nov 23 |
nicklas |
// Add click handler to file links |
7436 |
15 Nov 23 |
nicklas |
var clickableItems = document.getElementsByClassName('file-link'); |
7436 |
15 Nov 23 |
nicklas |
for (var i = 0; i < clickableItems.length; i++) |
7436 |
15 Nov 23 |
nicklas |
138 |
{ |
7436 |
15 Nov 23 |
nicklas |
Events.addEventHandler(clickableItems[i], 'click', vcall.fileLinkOnClick); |
7436 |
15 Nov 23 |
nicklas |
140 |
} |
7436 |
15 Nov 23 |
nicklas |
141 |
|
7436 |
15 Nov 23 |
nicklas |
var linkedVcf = document.getElementsByClassName('vcf-link'); |
7436 |
15 Nov 23 |
nicklas |
for (var i = 0; i < linkedVcf.length; i++) |
7436 |
15 Nov 23 |
nicklas |
144 |
{ |
7436 |
15 Nov 23 |
nicklas |
Events.addEventHandler(linkedVcf[i], 'click', vcall.vcfLinkOnClick); |
7436 |
15 Nov 23 |
nicklas |
146 |
} |
7436 |
15 Nov 23 |
nicklas |
147 |
|
7436 |
15 Nov 23 |
nicklas |
// If 'rerun' is active (and Delete items selected for re-run) the other options should be disabled |
7436 |
15 Nov 23 |
nicklas |
for (var rawNo = 0; rawNo < rawBioAssays.length; rawNo++) |
7436 |
15 Nov 23 |
nicklas |
150 |
{ |
7436 |
15 Nov 23 |
nicklas |
var rba = rawBioAssays[rawNo]; |
7436 |
15 Nov 23 |
nicklas |
Events.addEventHandler('rerun.'+rba.id, 'change', vcall.rerunOnChange); |
7436 |
15 Nov 23 |
nicklas |
153 |
} |
7436 |
15 Nov 23 |
nicklas |
154 |
|
7436 |
15 Nov 23 |
nicklas |
Doc.show('step-1'); |
7436 |
15 Nov 23 |
nicklas |
Doc.show('goregister'); |
7436 |
15 Nov 23 |
nicklas |
157 |
} |
7436 |
15 Nov 23 |
nicklas |
158 |
|
7436 |
15 Nov 23 |
nicklas |
vcall.fileLinkOnClick = function(event) |
7436 |
15 Nov 23 |
nicklas |
160 |
{ |
7436 |
15 Nov 23 |
nicklas |
var folder = Data.get(event.currentTarget, 'folder'); |
7436 |
15 Nov 23 |
nicklas |
var server = Data.get(event.currentTarget, 'server'); |
7436 |
15 Nov 23 |
nicklas |
var itemId = Data.get(event.currentTarget, 'item-id'); |
7436 |
15 Nov 23 |
nicklas |
server = server.replace(/\s*\[.*\]/, ''); |
7436 |
15 Nov 23 |
nicklas |
var url = '../analysis/view_remote_files.jsp?ID=' + App.getSessionId(); |
7436 |
15 Nov 23 |
nicklas |
url += '&clusterId='+server; |
7436 |
15 Nov 23 |
nicklas |
url += '&archive=project-archive-dna'; |
7436 |
15 Nov 23 |
nicklas |
url += '&path='+encodeURIComponent(folder); |
7436 |
15 Nov 23 |
nicklas |
url += '&itemType=RAWBIOASSAY&itemId='+itemId; |
7436 |
15 Nov 23 |
nicklas |
Dialogs.openPopup(url, 'ViewProjectFiles'+itemId, 750, 500); |
7436 |
15 Nov 23 |
nicklas |
171 |
} |
7436 |
15 Nov 23 |
nicklas |
172 |
|
7436 |
15 Nov 23 |
nicklas |
vcall.vcfLinkOnClick = function(event) |
7436 |
15 Nov 23 |
nicklas |
174 |
{ |
7436 |
15 Nov 23 |
nicklas |
var fileId = Data.int(event.currentTarget, 'file-id'); |
7436 |
15 Nov 23 |
nicklas |
var itemId = Data.int(event.currentTarget, 'item-id'); |
7436 |
15 Nov 23 |
nicklas |
var url = 'view_variants.jsp?ID=' + App.getSessionId(); |
7436 |
15 Nov 23 |
nicklas |
url += '&fileId='+fileId; |
7436 |
15 Nov 23 |
nicklas |
url += '&itemId='+itemId; |
7436 |
15 Nov 23 |
nicklas |
Dialogs.openPopup(url, 'ViewVcf'+fileId, 1100, 700); |
7436 |
15 Nov 23 |
nicklas |
181 |
} |
7436 |
15 Nov 23 |
nicklas |
182 |
|
7436 |
15 Nov 23 |
nicklas |
vcall.toggleSelection = function(event) |
7436 |
15 Nov 23 |
nicklas |
184 |
{ |
7436 |
15 Nov 23 |
nicklas |
var prefix = Data.get(event.currentTarget, 'prefix'); |
7436 |
15 Nov 23 |
nicklas |
var specialKey = event.altKey || event.ctrlKey || event.shiftKey; |
7436 |
15 Nov 23 |
nicklas |
187 |
|
7436 |
15 Nov 23 |
nicklas |
var frm = document.forms['reggie']; |
7436 |
15 Nov 23 |
nicklas |
for (var rawNo = 0; rawNo < rawBioAssays.length; rawNo++) |
7436 |
15 Nov 23 |
nicklas |
190 |
{ |
7436 |
15 Nov 23 |
nicklas |
var raw = rawBioAssays[rawNo]; |
7436 |
15 Nov 23 |
nicklas |
var chk = frm[prefix+'.'+raw.id]; |
7436 |
15 Nov 23 |
nicklas |
if (chk && !chk.disabled) |
7436 |
15 Nov 23 |
nicklas |
194 |
{ |
7436 |
15 Nov 23 |
nicklas |
chk.checked = specialKey ? false : !chk.checked; |
7436 |
15 Nov 23 |
nicklas |
if (prefix=='rerun') Events.sendChangeEvent(chk); |
7436 |
15 Nov 23 |
nicklas |
197 |
} |
7436 |
15 Nov 23 |
nicklas |
198 |
} |
7436 |
15 Nov 23 |
nicklas |
199 |
} |
7436 |
15 Nov 23 |
nicklas |
200 |
|
7436 |
15 Nov 23 |
nicklas |
vcall.rerunOnChange = function(event) |
7436 |
15 Nov 23 |
nicklas |
202 |
{ |
7436 |
15 Nov 23 |
nicklas |
var itemId = Data.get(event.currentTarget, 'item-id'); |
7436 |
15 Nov 23 |
nicklas |
var disable = event.currentTarget.checked && Doc.element('deleteItemsCreatedByFailedJobs').checked; |
7436 |
15 Nov 23 |
nicklas |
vcall.disableElement('confirm.'+itemId, disable); |
7436 |
15 Nov 23 |
nicklas |
vcall.disableElement('comment.'+itemId, disable); |
7436 |
15 Nov 23 |
nicklas |
207 |
} |
7436 |
15 Nov 23 |
nicklas |
208 |
|
7436 |
15 Nov 23 |
nicklas |
vcall.disableElement = function(element, disable) |
7436 |
15 Nov 23 |
nicklas |
210 |
{ |
7436 |
15 Nov 23 |
nicklas |
element = Doc.element(element); |
7436 |
15 Nov 23 |
nicklas |
if (element) element.disabled = disable; |
7436 |
15 Nov 23 |
nicklas |
213 |
} |
7436 |
15 Nov 23 |
nicklas |
214 |
|
7436 |
15 Nov 23 |
nicklas |
vcall.deleteItemsCreatedByFailedJobsOnChange = function() |
7436 |
15 Nov 23 |
nicklas |
216 |
{ |
7436 |
15 Nov 23 |
nicklas |
var disable = Doc.element('deleteItemsCreatedByFailedJobs').checked; |
7436 |
15 Nov 23 |
nicklas |
var frm = document.forms['reggie']; |
7436 |
15 Nov 23 |
nicklas |
for (var rawNo = 0; rawNo < rawBioAssays.length; rawNo++) |
7436 |
15 Nov 23 |
nicklas |
220 |
{ |
7436 |
15 Nov 23 |
nicklas |
var raw = rawBioAssays[rawNo]; |
7436 |
15 Nov 23 |
nicklas |
if (frm['rerun.'+raw.id].checked) |
7436 |
15 Nov 23 |
nicklas |
223 |
{ |
7436 |
15 Nov 23 |
nicklas |
vcall.disableElement('confirm.'+raw.id, disable); |
7436 |
15 Nov 23 |
nicklas |
vcall.disableElement('comment.'+raw.id, disable); |
7436 |
15 Nov 23 |
nicklas |
226 |
} |
7436 |
15 Nov 23 |
nicklas |
227 |
} |
7436 |
15 Nov 23 |
nicklas |
228 |
} |
7436 |
15 Nov 23 |
nicklas |
229 |
|
7436 |
15 Nov 23 |
nicklas |
vcall.submit = function() |
7436 |
15 Nov 23 |
nicklas |
231 |
{ |
7436 |
15 Nov 23 |
nicklas |
var frm = document.forms['reggie']; |
7436 |
15 Nov 23 |
nicklas |
var submitInfo = {}; |
7436 |
15 Nov 23 |
nicklas |
submitInfo.deleteItemsCreatedByFailedJobs = frm.deleteItemsCreatedByFailedJobs.checked; |
7436 |
15 Nov 23 |
nicklas |
235 |
|
7436 |
15 Nov 23 |
nicklas |
var all = []; |
7436 |
15 Nov 23 |
nicklas |
submitInfo.rawBioAssays = all; |
7436 |
15 Nov 23 |
nicklas |
for (var rawNo = 0; rawNo < rawBioAssays.length; rawNo++) |
7436 |
15 Nov 23 |
nicklas |
239 |
{ |
7436 |
15 Nov 23 |
nicklas |
var raw = rawBioAssays[rawNo]; |
7436 |
15 Nov 23 |
nicklas |
var tmp = {}; |
7436 |
15 Nov 23 |
nicklas |
tmp.id = raw.id; |
7436 |
15 Nov 23 |
nicklas |
243 |
|
7436 |
15 Nov 23 |
nicklas |
tmp.rerun = frm['rerun.'+raw.id].checked; |
7436 |
15 Nov 23 |
nicklas |
tmp.confirm = frm['confirm.'+raw.id].checked; |
7436 |
15 Nov 23 |
nicklas |
tmp.comment = frm['comment.'+raw.id].value; |
7436 |
15 Nov 23 |
nicklas |
247 |
|
7436 |
15 Nov 23 |
nicklas |
all[all.length] = tmp; |
7436 |
15 Nov 23 |
nicklas |
249 |
} |
7436 |
15 Nov 23 |
nicklas |
250 |
|
7436 |
15 Nov 23 |
nicklas |
var url = '../WgsVariantCalling.servlet?ID='+App.getSessionId(); |
7436 |
15 Nov 23 |
nicklas |
url += '&cmd=ConfirmVariantCalling'; |
7436 |
15 Nov 23 |
nicklas |
Wizard.showLoadingAnimation('Performing registration...'); |
7436 |
15 Nov 23 |
nicklas |
Wizard.asyncJsonRequest(url, vcall.submissionResults, 'POST', JSON.stringify(submitInfo)); |
7436 |
15 Nov 23 |
nicklas |
255 |
} |
7436 |
15 Nov 23 |
nicklas |
256 |
|
7436 |
15 Nov 23 |
nicklas |
vcall.submissionResults = function(response) |
7436 |
15 Nov 23 |
nicklas |
258 |
{ |
7436 |
15 Nov 23 |
nicklas |
Wizard.showFinalMessage(response.messages); |
7436 |
15 Nov 23 |
nicklas |
Doc.show('gorestart'); |
7436 |
15 Nov 23 |
nicklas |
261 |
} |
7436 |
15 Nov 23 |
nicklas |
262 |
|
7436 |
15 Nov 23 |
nicklas |
return vcall; |
7436 |
15 Nov 23 |
nicklas |
264 |
}(); |
7436 |
15 Nov 23 |
nicklas |
265 |
|
7436 |
15 Nov 23 |
nicklas |
Doc.onLoad(VCall.initPage); |
7436 |
15 Nov 23 |
nicklas |
267 |
|