comparison core.js @ 526:97b84a942aff

Volume tracker stores data in result <metric> node (was saving in <survey>).
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Fri, 19 Feb 2016 10:40:52 +0000
parents 6c8757c643ae
children df8df0f47b34
comparison
equal deleted inserted replaced
524:6c8757c643ae 526:97b84a942aff
2844 interfaceContext.volume.valueText.textContent = interfaceContext.volume.valueDB+'dB'; 2844 interfaceContext.volume.valueText.textContent = interfaceContext.volume.valueDB+'dB';
2845 audioEngineContext.outputGain.gain.value = interfaceContext.volume.valueLin; 2845 audioEngineContext.outputGain.gain.value = interfaceContext.volume.valueLin;
2846 } 2846 }
2847 this.slider.onmouseup = function(event) 2847 this.slider.onmouseup = function(event)
2848 { 2848 {
2849 var storePoint = testState.currentStore.XMLDOM.children[0].getAllElementsByName('volumeTracker'); 2849 var storePoint = testState.currentStore.XMLDOM.getElementsByTagName('metric')[0].getAllElementsByName('volumeTracker');
2850 if (storePoint.length == 0) 2850 if (storePoint.length == 0)
2851 { 2851 {
2852 storePoint = storage.document.createElement('metricresult'); 2852 storePoint = storage.document.createElement('metricresult');
2853 storePoint.setAttribute('name','volumeTracker'); 2853 storePoint.setAttribute('name','volumeTracker');
2854 testState.currentStore.XMLDOM.children[0].appendChild(storePoint); 2854 testState.currentStore.XMLDOM.getElementsByTagName('metric')[0].appendChild(storePoint);
2855 } 2855 }
2856 else { 2856 else {
2857 storePoint = storePoint[0]; 2857 storePoint = storePoint[0];
2858 } 2858 }
2859 var node = storage.document.createElement('movement'); 2859 var node = storage.document.createElement('movement');