Mercurial > hg > webaudioevaluationtool
changeset 1009:98a5db2ae8a1
Feature #1230: Popup content question entries now have automatic focus
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Mon, 01 Jun 2015 10:31:41 +0100 |
parents | eefdac420017 |
children | 2b70c4b182fb |
files | core.js |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/core.js Mon Jun 01 10:16:04 2015 +0100 +++ b/core.js Mon Jun 01 10:31:41 2015 +0100 @@ -108,9 +108,10 @@ this.popupContent.appendChild(span); this.popupContent.appendChild(br); this.popupContent.appendChild(textArea); + this.popupContent.childNodes[2].focus(); } this.popupContent.appendChild(this.popupButton); - } + }; this.initState = function(node) { //Call this with your preTest and postTest nodes when needed to @@ -129,7 +130,7 @@ this.showPopup(); this.postNode(); } - } + }; this.buttonClicked = function() { // Each time the popup button is clicked! @@ -170,7 +171,7 @@ } advanceState(); } - } + }; } function advanceState()