Mercurial > hg > webaudioevaluationtool
comparison core.js @ 1049:a37ab38cf90b
Bug fix #1315: Comment boxes now paste informaton back into the console.
author | Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk> |
---|---|
date | Wed, 01 Jul 2015 10:15:06 +0100 |
parents | 7a8fcf04aad3 |
children | 6e97481ae3b1 |
comparison
equal
deleted
inserted
replaced
1048:7a8fcf04aad3 | 1049:a37ab38cf90b |
---|---|
1620 if (this.audioObject.specification.parent.elementComments) { | 1620 if (this.audioObject.specification.parent.elementComments) { |
1621 var question = document.createElement('question'); | 1621 var question = document.createElement('question'); |
1622 question.textContent = this.trackString.textContent; | 1622 question.textContent = this.trackString.textContent; |
1623 var response = document.createElement('response'); | 1623 var response = document.createElement('response'); |
1624 response.textContent = this.trackCommentBox.value; | 1624 response.textContent = this.trackCommentBox.value; |
1625 console.log("Comment frag-"+this.id+": "+response.textContent); | |
1625 root.appendChild(question); | 1626 root.appendChild(question); |
1626 root.appendChild(response); | 1627 root.appendChild(response); |
1627 } | 1628 } |
1628 return root; | 1629 return root; |
1629 }; | 1630 }; |
1653 this.exportXMLDOM = function() { | 1654 this.exportXMLDOM = function() { |
1654 var root = document.createElement('comment'); | 1655 var root = document.createElement('comment'); |
1655 root.id = this.specification.id; | 1656 root.id = this.specification.id; |
1656 root.setAttribute('type',this.specification.type); | 1657 root.setAttribute('type',this.specification.type); |
1657 root.textContent = this.textArea.value; | 1658 root.textContent = this.textArea.value; |
1659 console.log("Question :"+this.string.textContent); | |
1660 console.log("Response :"+root.textContent); | |
1658 return root; | 1661 return root; |
1659 }; | 1662 }; |
1660 }; | 1663 }; |
1661 | 1664 |
1662 this.radioBox = function(commentQuestion) { | 1665 this.radioBox = function(commentQuestion) { |