3492 |
18 Sep 15 |
nicklas |
var Report = function() |
3492 |
18 Sep 15 |
nicklas |
2 |
{ |
3492 |
18 Sep 15 |
nicklas |
var report = {}; |
3492 |
18 Sep 15 |
nicklas |
var debug = 0; |
4991 |
01 Oct 18 |
nicklas |
var manuallySelected = []; |
5666 |
14 Oct 19 |
nicklas |
var selectionIsValid = false; |
5666 |
14 Oct 19 |
nicklas |
var rawDataType; |
5666 |
14 Oct 19 |
nicklas |
var pipeline; |
5666 |
14 Oct 19 |
nicklas |
var annotationTypePipeline; |
3492 |
18 Sep 15 |
nicklas |
10 |
|
3492 |
18 Sep 15 |
nicklas |
// Page initialization |
3492 |
18 Sep 15 |
nicklas |
report.initPage = function() |
3492 |
18 Sep 15 |
nicklas |
13 |
{ |
3492 |
18 Sep 15 |
nicklas |
14 |
|
3492 |
18 Sep 15 |
nicklas |
// Step 1 |
3492 |
18 Sep 15 |
nicklas |
Buttons.addClickHandler('btnSelectRawBioAssays', report.selectRawBioAssays); |
3616 |
23 Nov 15 |
nicklas |
Events.addEventHandler('reportSoftware', 'change', report.softwareOnChange); |
3492 |
18 Sep 15 |
nicklas |
Events.addEventHandler('rawBioAssays', 'base-selected', report.setRawBioAssayCallback); |
4991 |
01 Oct 18 |
nicklas |
Events.addEventHandler('rawBioAssays', 'change', report.rawBioAssaysOnChange); |
3492 |
18 Sep 15 |
nicklas |
Events.addEventHandler('step-1', 'wizard-validate', report.validateStep1); |
3492 |
18 Sep 15 |
nicklas |
21 |
|
3492 |
18 Sep 15 |
nicklas |
// Navigation |
3492 |
18 Sep 15 |
nicklas |
Buttons.addClickHandler('gocancel', Wizard.cancelWizard); |
3492 |
18 Sep 15 |
nicklas |
Buttons.addClickHandler('gorestart', Wizard.restartWizard); |
3492 |
18 Sep 15 |
nicklas |
Buttons.addClickHandler('gonext', Wizard.goNextOnClick); |
3492 |
18 Sep 15 |
nicklas |
Buttons.addClickHandler('goregister', Wizard.goRegister); |
3492 |
18 Sep 15 |
nicklas |
27 |
|
3492 |
18 Sep 15 |
nicklas |
// Final registration |
3492 |
18 Sep 15 |
nicklas |
Events.addEventHandler('wizard', 'wizard-submit', report.submit); |
3492 |
18 Sep 15 |
nicklas |
30 |
|
3492 |
18 Sep 15 |
nicklas |
Wizard.showLoadingAnimation('Loading bioassays...'); |
3492 |
18 Sep 15 |
nicklas |
var url = '../Report.servlet?ID='+App.getSessionId(); |
3492 |
18 Sep 15 |
nicklas |
url += '&cmd=GetRawBioAssayWithoutReport'; |
3492 |
18 Sep 15 |
nicklas |
url += '&report='+encodeURIComponent(Data.get('page-data', 'report')); |
3492 |
18 Sep 15 |
nicklas |
Wizard.asyncJsonRequest(url, report.initializeStep1); |
3492 |
18 Sep 15 |
nicklas |
36 |
} |
3492 |
18 Sep 15 |
nicklas |
37 |
|
3492 |
18 Sep 15 |
nicklas |
// --- Step 1 ----------------------------------- |
3492 |
18 Sep 15 |
nicklas |
report.initializeStep1 = function(response) |
3492 |
18 Sep 15 |
nicklas |
40 |
{ |
3492 |
18 Sep 15 |
nicklas |
var frm = document.forms['reggie']; |
4991 |
01 Oct 18 |
nicklas |
Reggie.loadSoftware('REPORT_SOFTWARE', 'reportSoftware', 'REPORT_TEMPLATE,PARAMETER_SET', Data.get('page-data', 'report')); |
3492 |
18 Sep 15 |
nicklas |
43 |
|
3513 |
24 Sep 15 |
nicklas |
Doc.element('reportName').innerHTML = Strings.encodeTags(response.reportName); |
3616 |
23 Nov 15 |
nicklas |
Doc.element('configSection').innerHTML = Strings.encodeTags(response.configSection); |
5666 |
14 Oct 19 |
nicklas |
rawDataType = response.rawDataType; |
5666 |
14 Oct 19 |
nicklas |
pipeline = response.pipeline; |
3513 |
24 Sep 15 |
nicklas |
48 |
|
3492 |
18 Sep 15 |
nicklas |
var rawBioAssays = response.rawBioAssays; |
3492 |
18 Sep 15 |
nicklas |
if (rawBioAssays.length > 0) |
3492 |
18 Sep 15 |
nicklas |
51 |
{ |
3492 |
18 Sep 15 |
nicklas |
var firstPlate = null; |
3492 |
18 Sep 15 |
nicklas |
for (var rawNo=0; rawNo < rawBioAssays.length; rawNo++) |
3492 |
18 Sep 15 |
nicklas |
54 |
{ |
3492 |
18 Sep 15 |
nicklas |
var raw = rawBioAssays[rawNo]; |
4991 |
01 Oct 18 |
nicklas |
56 |
|
4991 |
01 Oct 18 |
nicklas |
var libPlate = raw.lib.bioWell ? raw.lib.bioWell.bioPlate : null; |
3492 |
18 Sep 15 |
nicklas |
if (firstPlate == null && libPlate != null) firstPlate = libPlate.name; |
4991 |
01 Oct 18 |
nicklas |
var option = report.createListOption(rawNo+1, raw, raw.DO_NOT_USE == null && libPlate != null && libPlate.name==firstPlate) |
3492 |
18 Sep 15 |
nicklas |
frm.rawBioAssays.options[frm.rawBioAssays.length] = option; |
3492 |
18 Sep 15 |
nicklas |
61 |
} |
5666 |
14 Oct 19 |
nicklas |
Events.sendChangeEvent('rawBioAssays'); |
3492 |
18 Sep 15 |
nicklas |
63 |
} |
3492 |
18 Sep 15 |
nicklas |
else |
3492 |
18 Sep 15 |
nicklas |
65 |
{ |
3492 |
18 Sep 15 |
nicklas |
Wizard.setInputStatus('rawBioAssays', 'invalid', 'No raw bioassays available for processing'); |
3492 |
18 Sep 15 |
nicklas |
67 |
} |
3492 |
18 Sep 15 |
nicklas |
68 |
|
3492 |
18 Sep 15 |
nicklas |
Doc.show('step-1'); |
3492 |
18 Sep 15 |
nicklas |
Doc.show('goregister'); |
3492 |
18 Sep 15 |
nicklas |
71 |
} |
3492 |
18 Sep 15 |
nicklas |
72 |
|
4991 |
01 Oct 18 |
nicklas |
report.validateStep1 = function(event) |
4991 |
01 Oct 18 |
nicklas |
74 |
{ |
5666 |
14 Oct 19 |
nicklas |
if (!selectionIsValid) event.preventDefault(); |
4991 |
01 Oct 18 |
nicklas |
76 |
} |
4991 |
01 Oct 18 |
nicklas |
77 |
|
3492 |
18 Sep 15 |
nicklas |
report.selectRawBioAssays = function() |
3492 |
18 Sep 15 |
nicklas |
79 |
{ |
3492 |
18 Sep 15 |
nicklas |
var frm = document.forms['reggie']; |
3492 |
18 Sep 15 |
nicklas |
if (frm.rawBioAssays.disabled) return; |
4991 |
01 Oct 18 |
nicklas |
// Reset list |
4991 |
01 Oct 18 |
nicklas |
manuallySelected = []; |
3492 |
18 Sep 15 |
nicklas |
var url = '&resetTemporary=1'; |
5666 |
14 Oct 19 |
nicklas |
if (rawDataType) url += '&tmpfilter:STRING:rawDataType='+encodeURIComponent(rawDataType); |
5666 |
14 Oct 19 |
nicklas |
if (pipeline != null) |
5666 |
14 Oct 19 |
nicklas |
87 |
{ |
5666 |
14 Oct 19 |
nicklas |
if (annotationTypePipeline == null) |
5666 |
14 Oct 19 |
nicklas |
89 |
{ |
5666 |
14 Oct 19 |
nicklas |
annotationTypePipeline = Reggie.getAnnotationTypeInfo('PIPELINE'); |
5666 |
14 Oct 19 |
nicklas |
91 |
} |
5666 |
14 Oct 19 |
nicklas |
url += '&tmpfilter:STRING:'+encodeURIComponent('#')+annotationTypePipeline.id+'='+encodeURIComponent(pipeline); |
5666 |
14 Oct 19 |
nicklas |
93 |
} |
3492 |
18 Sep 15 |
nicklas |
Dialogs.selectItem('RAWBIOASSAY', 'rawBioAssays', 1, url); |
3492 |
18 Sep 15 |
nicklas |
95 |
} |
3492 |
18 Sep 15 |
nicklas |
96 |
|
3492 |
18 Sep 15 |
nicklas |
report.setRawBioAssayCallback = function(event) |
3492 |
18 Sep 15 |
nicklas |
98 |
{ |
3492 |
18 Sep 15 |
nicklas |
var raw = event.detail; |
3492 |
18 Sep 15 |
nicklas |
100 |
|
4991 |
01 Oct 18 |
nicklas |
var opt = Reggie.getListOption('rawBioAssays', raw.id); |
4991 |
01 Oct 18 |
nicklas |
if (opt) |
4991 |
01 Oct 18 |
nicklas |
103 |
{ |
4991 |
01 Oct 18 |
nicklas |
opt.selected = true; |
4991 |
01 Oct 18 |
nicklas |
105 |
} |
4991 |
01 Oct 18 |
nicklas |
else |
4991 |
01 Oct 18 |
nicklas |
107 |
{ |
4991 |
01 Oct 18 |
nicklas |
manuallySelected[manuallySelected.length] = raw.id; |
4991 |
01 Oct 18 |
nicklas |
109 |
} |
4991 |
01 Oct 18 |
nicklas |
110 |
|
4991 |
01 Oct 18 |
nicklas |
if (raw.remaining == 0 && manuallySelected.length > 0) |
4991 |
01 Oct 18 |
nicklas |
112 |
{ |
4991 |
01 Oct 18 |
nicklas |
var url = '../Report.servlet?ID='+App.getSessionId(); |
4991 |
01 Oct 18 |
nicklas |
url += '&cmd=GetRawBioAssayWithoutReport'; |
4991 |
01 Oct 18 |
nicklas |
url += '&items='+manuallySelected.join(','); |
4991 |
01 Oct 18 |
nicklas |
url += '&report='+encodeURIComponent(Data.get('page-data', 'report')); |
4991 |
01 Oct 18 |
nicklas |
Wizard.showLoadingAnimation('Loading bioassays...'); |
4991 |
01 Oct 18 |
nicklas |
Wizard.asyncJsonRequest(url, report.manuallySelected); |
4991 |
01 Oct 18 |
nicklas |
119 |
} |
4991 |
01 Oct 18 |
nicklas |
else |
4991 |
01 Oct 18 |
nicklas |
121 |
{ |
4991 |
01 Oct 18 |
nicklas |
Events.sendChangeEvent('rawBioAssays'); |
4991 |
01 Oct 18 |
nicklas |
123 |
} |
4991 |
01 Oct 18 |
nicklas |
124 |
} |
4991 |
01 Oct 18 |
nicklas |
125 |
|
4991 |
01 Oct 18 |
nicklas |
report.manuallySelected = function(response) |
4991 |
01 Oct 18 |
nicklas |
127 |
{ |
4991 |
01 Oct 18 |
nicklas |
var rawBioAssays = response.rawBioAssays; |
4991 |
01 Oct 18 |
nicklas |
var frm = document.forms['reggie']; |
4991 |
01 Oct 18 |
nicklas |
130 |
|
4991 |
01 Oct 18 |
nicklas |
if (rawBioAssays != null && rawBioAssays.length > 0) |
4991 |
01 Oct 18 |
nicklas |
132 |
{ |
4991 |
01 Oct 18 |
nicklas |
var offset = frm.rawBioAssays.length+1; |
4991 |
01 Oct 18 |
nicklas |
for (var rawNo=0; rawNo < rawBioAssays.length; rawNo++) |
4991 |
01 Oct 18 |
nicklas |
135 |
{ |
4991 |
01 Oct 18 |
nicklas |
var raw = rawBioAssays[rawNo]; |
4991 |
01 Oct 18 |
nicklas |
var option = report.createListOption(rawNo+offset, raw, raw.DO_NOT_USE == null); |
4991 |
01 Oct 18 |
nicklas |
frm.rawBioAssays.options[frm.rawBioAssays.length] = option; |
4991 |
01 Oct 18 |
nicklas |
139 |
} |
4991 |
01 Oct 18 |
nicklas |
Events.sendChangeEvent('rawBioAssays'); |
4991 |
01 Oct 18 |
nicklas |
141 |
} |
4991 |
01 Oct 18 |
nicklas |
142 |
} |
4991 |
01 Oct 18 |
nicklas |
143 |
|
4991 |
01 Oct 18 |
nicklas |
report.createListOption = function(index, rawItem, selected) |
4991 |
01 Oct 18 |
nicklas |
145 |
{ |
4991 |
01 Oct 18 |
nicklas |
var lib = rawItem.lib; |
4991 |
01 Oct 18 |
nicklas |
var isYellow = lib.specimen && lib.specimen.YellowLabel != null; |
4991 |
01 Oct 18 |
nicklas |
var libPlate = lib.bioWell ? lib.bioWell.bioPlate : null; |
4991 |
01 Oct 18 |
nicklas |
149 |
|
4991 |
01 Oct 18 |
nicklas |
var tooltip = null; |
4991 |
01 Oct 18 |
nicklas |
var name = (index) + ': '; |
4991 |
01 Oct 18 |
nicklas |
if (libPlate) name += libPlate.name + ' - '; |
4991 |
01 Oct 18 |
nicklas |
name += rawItem.name; |
4991 |
01 Oct 18 |
nicklas |
154 |
|
4991 |
01 Oct 18 |
nicklas |
if (rawItem.DO_NOT_USE) |
4991 |
01 Oct 18 |
nicklas |
156 |
{ |
4991 |
01 Oct 18 |
nicklas |
name += ' [DoNotUse]'; |
4991 |
01 Oct 18 |
nicklas |
tooltip = 'DoNotUse-'+Strings.encodeTags(rawItem.DO_NOT_USE+': '+rawItem.DO_NOT_USE_COMMENT); |
4991 |
01 Oct 18 |
nicklas |
159 |
} |
4991 |
01 Oct 18 |
nicklas |
else if (rawItem.AutoProcess == 'ReProcess') |
4991 |
01 Oct 18 |
nicklas |
161 |
{ |
4991 |
01 Oct 18 |
nicklas |
name += ' [R]'; |
4991 |
01 Oct 18 |
nicklas |
163 |
} |
4991 |
01 Oct 18 |
nicklas |
164 |
|
4991 |
01 Oct 18 |
nicklas |
var option = new Option(name, rawItem.id, false, selected); |
4991 |
01 Oct 18 |
nicklas |
if (isYellow) option.className = 'yellow'; |
4991 |
01 Oct 18 |
nicklas |
if (tooltip) option.title = tooltip; |
4991 |
01 Oct 18 |
nicklas |
option.rawBioAssay = rawItem; |
4991 |
01 Oct 18 |
nicklas |
return option; |
4991 |
01 Oct 18 |
nicklas |
170 |
} |
4991 |
01 Oct 18 |
nicklas |
171 |
|
4991 |
01 Oct 18 |
nicklas |
report.rawBioAssaysOnChange = function() |
4991 |
01 Oct 18 |
nicklas |
173 |
{ |
3492 |
18 Sep 15 |
nicklas |
var frm = document.forms['reggie']; |
4991 |
01 Oct 18 |
nicklas |
175 |
|
5666 |
14 Oct 19 |
nicklas |
selectionIsValid = false; |
5666 |
14 Oct 19 |
nicklas |
var numSelected = 0; |
4991 |
01 Oct 18 |
nicklas |
var numDoNotUse = 0; |
5666 |
14 Oct 19 |
nicklas |
var invalidPipeline = null; |
5666 |
14 Oct 19 |
nicklas |
180 |
|
5666 |
14 Oct 19 |
nicklas |
Wizard.setInputStatus('rawBioAssays'); |
5666 |
14 Oct 19 |
nicklas |
Wizard.hideGoNextConfirmation(); |
5666 |
14 Oct 19 |
nicklas |
183 |
|
4991 |
01 Oct 18 |
nicklas |
for (var rawNo = 0; rawNo < frm.rawBioAssays.length; rawNo++) |
3492 |
18 Sep 15 |
nicklas |
185 |
{ |
4991 |
01 Oct 18 |
nicklas |
if (frm.rawBioAssays[rawNo].selected) |
3492 |
18 Sep 15 |
nicklas |
187 |
{ |
5666 |
14 Oct 19 |
nicklas |
numSelected++; |
5666 |
14 Oct 19 |
nicklas |
189 |
|
4991 |
01 Oct 18 |
nicklas |
var raw = frm.rawBioAssays[rawNo].rawBioAssay; |
4991 |
01 Oct 18 |
nicklas |
if (raw.DO_NOT_USE) numDoNotUse++; |
5666 |
14 Oct 19 |
nicklas |
192 |
|
5666 |
14 Oct 19 |
nicklas |
if (pipeline && raw.pipeline && raw.pipeline != pipeline) |
5666 |
14 Oct 19 |
nicklas |
194 |
{ |
5666 |
14 Oct 19 |
nicklas |
invalidPipeline = Strings.encodeTags(raw.name+' ('+raw.pipeline)+') is not intended for the '+pipeline+' pipeline.'; |
5666 |
14 Oct 19 |
nicklas |
196 |
} |
3492 |
18 Sep 15 |
nicklas |
197 |
} |
3492 |
18 Sep 15 |
nicklas |
198 |
} |
5666 |
14 Oct 19 |
nicklas |
if (numSelected == 0) |
5666 |
14 Oct 19 |
nicklas |
200 |
{ |
5666 |
14 Oct 19 |
nicklas |
Wizard.setInputStatus('rawBioAssays', 'invalid', 'Select at least one item'); |
5666 |
14 Oct 19 |
nicklas |
return; |
5666 |
14 Oct 19 |
nicklas |
203 |
} |
5666 |
14 Oct 19 |
nicklas |
if (invalidPipeline) |
5666 |
14 Oct 19 |
nicklas |
205 |
{ |
5666 |
14 Oct 19 |
nicklas |
Wizard.setInputStatus('rawBioAssays', 'invalid', invalidPipeline); |
5666 |
14 Oct 19 |
nicklas |
return; |
5666 |
14 Oct 19 |
nicklas |
208 |
} |
5666 |
14 Oct 19 |
nicklas |
selectionIsValid = true; |
4991 |
01 Oct 18 |
nicklas |
210 |
|
4991 |
01 Oct 18 |
nicklas |
if (numDoNotUse > 0) |
4991 |
01 Oct 18 |
nicklas |
212 |
{ |
4991 |
01 Oct 18 |
nicklas |
Wizard.setInputStatus('rawBioAssays', 'warning', numDoNotUse + ' selected items marked as DoNotUse'); |
4991 |
01 Oct 18 |
nicklas |
Wizard.showGoNextConfirmation(true, 'Confirm ' + numDoNotUse + ' items marked as DoNotUse'); |
4991 |
01 Oct 18 |
nicklas |
215 |
} |
4991 |
01 Oct 18 |
nicklas |
else |
4991 |
01 Oct 18 |
nicklas |
217 |
{ |
5666 |
14 Oct 19 |
nicklas |
Wizard.setInputStatus('rawBioAssays', 'valid'); |
4991 |
01 Oct 18 |
nicklas |
219 |
} |
3492 |
18 Sep 15 |
nicklas |
220 |
} |
3492 |
18 Sep 15 |
nicklas |
221 |
|
3616 |
23 Nov 15 |
nicklas |
report.softwareOnChange = function(event) |
3616 |
23 Nov 15 |
nicklas |
223 |
{ |
3616 |
23 Nov 15 |
nicklas |
var target = event.currentTarget; |
3616 |
23 Nov 15 |
nicklas |
var item = target[target.selectedIndex].item; |
3616 |
23 Nov 15 |
nicklas |
if (!item) item = {}; |
3616 |
23 Nov 15 |
nicklas |
227 |
|
3616 |
23 Nov 15 |
nicklas |
Doc.element(target.id+'.parameterSet').innerHTML = Strings.encodeTags(item.ParameterSet || 'default'); |
3616 |
23 Nov 15 |
nicklas |
Doc.element(target.id+'.description').innerHTML = Strings.encodeTags(item.description); |
3616 |
23 Nov 15 |
nicklas |
Wizard.setInputStatus(target.id, 'valid'); |
3616 |
23 Nov 15 |
nicklas |
231 |
|
3616 |
23 Nov 15 |
nicklas |
if (item.ParameterSet) |
3616 |
23 Nov 15 |
nicklas |
233 |
{ |
3616 |
23 Nov 15 |
nicklas |
var url = '../Install.servlet?ID='+App.getSessionId(); |
3616 |
23 Nov 15 |
nicklas |
url += '&cmd=GetParameterSetInfo'; |
3616 |
23 Nov 15 |
nicklas |
url += '¶meterSet='+encodeURIComponent(item.ParameterSet); |
3616 |
23 Nov 15 |
nicklas |
url += '&targetId='+target.id; |
3616 |
23 Nov 15 |
nicklas |
Wizard.asyncJsonRequest(url, report.parameterSetInfoLoaded); |
3616 |
23 Nov 15 |
nicklas |
239 |
} |
3616 |
23 Nov 15 |
nicklas |
240 |
} |
3616 |
23 Nov 15 |
nicklas |
241 |
|
3616 |
23 Nov 15 |
nicklas |
report.parameterSetInfoLoaded = function(response) |
3616 |
23 Nov 15 |
nicklas |
243 |
{ |
3616 |
23 Nov 15 |
nicklas |
if (!response.parameters || response.parameters.length == 0) |
3616 |
23 Nov 15 |
nicklas |
245 |
{ |
3616 |
23 Nov 15 |
nicklas |
Wizard.setInputStatus(response.targetId, 'warning', 'Can\'t find \'' + Strings.encodeTags(response.parameterSet) + '\' parameter set in reggie-config.xml'); |
3616 |
23 Nov 15 |
nicklas |
247 |
} |
3616 |
23 Nov 15 |
nicklas |
248 |
} |
3616 |
23 Nov 15 |
nicklas |
249 |
|
3616 |
23 Nov 15 |
nicklas |
250 |
|
3492 |
18 Sep 15 |
nicklas |
report.submit = function() |
3492 |
18 Sep 15 |
nicklas |
252 |
{ |
3492 |
18 Sep 15 |
nicklas |
var frm = document.forms['reggie']; |
3492 |
18 Sep 15 |
nicklas |
var submitInfo = {}; |
3492 |
18 Sep 15 |
nicklas |
255 |
|
3492 |
18 Sep 15 |
nicklas |
var rawBioAssays = []; |
3492 |
18 Sep 15 |
nicklas |
submitInfo.rawBioAssays = rawBioAssays; |
3616 |
23 Nov 15 |
nicklas |
submitInfo.software = parseInt(frm.reportSoftware.value); |
3492 |
18 Sep 15 |
nicklas |
submitInfo.report = Data.get('page-data', 'report'); |
3492 |
18 Sep 15 |
nicklas |
260 |
|
3492 |
18 Sep 15 |
nicklas |
for (var rawNo = 0; rawNo < frm.rawBioAssays.length; rawNo++) |
3492 |
18 Sep 15 |
nicklas |
262 |
{ |
3492 |
18 Sep 15 |
nicklas |
if (frm.rawBioAssays[rawNo].selected) |
3492 |
18 Sep 15 |
nicklas |
264 |
{ |
3492 |
18 Sep 15 |
nicklas |
var raw = {}; |
3492 |
18 Sep 15 |
nicklas |
raw.id = frm.rawBioAssays[rawNo].rawBioAssay.id; |
3492 |
18 Sep 15 |
nicklas |
rawBioAssays[rawBioAssays.length] = raw; |
3492 |
18 Sep 15 |
nicklas |
268 |
} |
3492 |
18 Sep 15 |
nicklas |
269 |
} |
3492 |
18 Sep 15 |
nicklas |
270 |
|
3492 |
18 Sep 15 |
nicklas |
var url = '../Report.servlet?ID='+App.getSessionId(); |
3492 |
18 Sep 15 |
nicklas |
url += '&cmd=CreateReport'; |
3492 |
18 Sep 15 |
nicklas |
Wizard.showLoadingAnimation('Performing registration...'); |
3492 |
18 Sep 15 |
nicklas |
Wizard.asyncJsonRequest(url, report.submissionResults, 'POST', JSON.stringify(submitInfo)); |
3492 |
18 Sep 15 |
nicklas |
275 |
} |
3492 |
18 Sep 15 |
nicklas |
276 |
|
3492 |
18 Sep 15 |
nicklas |
report.submissionResults = function(response) |
3492 |
18 Sep 15 |
nicklas |
278 |
{ |
3492 |
18 Sep 15 |
nicklas |
Wizard.showFinalMessage(response.messages); |
3492 |
18 Sep 15 |
nicklas |
Doc.show('gorestart'); |
3492 |
18 Sep 15 |
nicklas |
281 |
} |
3492 |
18 Sep 15 |
nicklas |
282 |
|
3492 |
18 Sep 15 |
nicklas |
283 |
|
3492 |
18 Sep 15 |
nicklas |
return report; |
3492 |
18 Sep 15 |
nicklas |
285 |
}(); |
3492 |
18 Sep 15 |
nicklas |
286 |
|
3492 |
18 Sep 15 |
nicklas |
Doc.onLoad(Report.initPage); |
3492 |
18 Sep 15 |
nicklas |
288 |
|