Mercurial > hg > webaudioevaluationtool
comparison js/specification.js @ 3021:a5a6c44bab6e
Added showBackButton to test create
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Tue, 12 Sep 2017 15:36:10 +0100 |
parents | 664065577426 |
children | 192538967e67 |
comparison
equal
deleted
inserted
replaced
3020:664065577426 | 3021:a5a6c44bab6e |
---|---|
423 } | 423 } |
424 }; | 424 }; |
425 this.encode = function (doc) { | 425 this.encode = function (doc) { |
426 var node = doc.createElement('survey'); | 426 var node = doc.createElement('survey'); |
427 node.setAttribute('location', this.location); | 427 node.setAttribute('location', this.location); |
428 node.setAttribute('showBackButton', this.showBackButton); | |
428 for (var i = 0; i < this.options.length; i++) { | 429 for (var i = 0; i < this.options.length; i++) { |
429 node.appendChild(this.options[i].exportXML(doc)); | 430 node.appendChild(this.options[i].exportXML(doc)); |
430 } | 431 } |
431 return node; | 432 return node; |
432 }; | 433 }; |