Mercurial > hg > webaudioevaluationtool
comparison ape.js @ 933:1265e2aebf17
Bug #1255: Will show a console warning if projectReturn is not set and assume projectReturn is "null".
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Fri, 29 May 2015 16:33:50 +0100 |
parents | ec9a867e4512 |
children | 20823d1467b1 |
comparison
equal
deleted
inserted
replaced
932:ec9a867e4512 | 933:1265e2aebf17 |
---|---|
177 var titleSpan = document.createElement('span'); | 177 var titleSpan = document.createElement('span'); |
178 titleSpan.id = "pageTitle"; | 178 titleSpan.id = "pageTitle"; |
179 pagetitle.appendChild(titleSpan); | 179 pagetitle.appendChild(titleSpan); |
180 | 180 |
181 // Store the return URL path in global projectReturn | 181 // Store the return URL path in global projectReturn |
182 projectReturn = xmlSetup[0].attributes['projectReturn'].value; | 182 projectReturn = xmlSetup[0].attributes['projectReturn']; |
183 if (projectReturn == undefined) { | |
184 console.log("WARNING - projectReturn not specified! Will assume null."); | |
185 projectReturn = "null"; | |
186 } else { | |
187 projectReturn = projectReturn.value; | |
188 } | |
183 | 189 |
184 // Create Interface buttons! | 190 // Create Interface buttons! |
185 var interfaceButtons = document.createElement('div'); | 191 var interfaceButtons = document.createElement('div'); |
186 interfaceButtons.id = 'interface-buttons'; | 192 interfaceButtons.id = 'interface-buttons'; |
187 | 193 |