Mercurial > hg > webaudioevaluationtool
comparison js/specification.js @ 3020:664065577426
Hide the back button #232
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Tue, 12 Sep 2017 15:28:22 +0100 |
parents | 2eec0c37b4cb |
children | a5a6c44bab6e |
comparison
equal
deleted
inserted
replaced
3019:f06405eacbe1 | 3020:664065577426 |
---|---|
214 | 214 |
215 function surveyNode(specification) { | 215 function surveyNode(specification) { |
216 this.location = undefined; | 216 this.location = undefined; |
217 this.options = []; | 217 this.options = []; |
218 this.parent = undefined; | 218 this.parent = undefined; |
219 this.showBackButton = true; | |
219 this.specification = specification; | 220 this.specification = specification; |
220 | 221 |
221 this.addOption = function () { | 222 this.addOption = function () { |
222 var node = new this.OptionNode(this.specification); | 223 var node = new this.OptionNode(this.specification); |
223 this.options.push(node); | 224 this.options.push(node); |
400 this.location = xml.getAttribute('location'); | 401 this.location = xml.getAttribute('location'); |
401 if (this.location == 'before') { | 402 if (this.location == 'before') { |
402 this.location = 'pre'; | 403 this.location = 'pre'; |
403 } else if (this.location == 'after') { | 404 } else if (this.location == 'after') { |
404 this.location = 'post'; | 405 this.location = 'post'; |
406 } | |
407 this.showBackButton = xml.getAttribute("showBackButton"); | |
408 if (this.showBackButton == "false") { | |
409 this.showBackButton = false; | |
410 } else { | |
411 this.showBackButton = true; | |
405 } | 412 } |
406 var child = xml.firstElementChild; | 413 var child = xml.firstElementChild; |
407 while (child) { | 414 while (child) { |
408 var node = new this.OptionNode(this.specification); | 415 var node = new this.OptionNode(this.specification); |
409 node.decode(parent, child); | 416 node.decode(parent, child); |