changeset 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
files core.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/core.js	Thu Feb 18 10:59:01 2016 +0000
+++ b/core.js	Fri Feb 19 10:40:52 2016 +0000
@@ -2846,12 +2846,12 @@
         }
         this.slider.onmouseup = function(event)
         {
-            var storePoint = testState.currentStore.XMLDOM.children[0].getAllElementsByName('volumeTracker');
+            var storePoint = testState.currentStore.XMLDOM.getElementsByTagName('metric')[0].getAllElementsByName('volumeTracker');
             if (storePoint.length == 0)
             {
                 storePoint = storage.document.createElement('metricresult');
                 storePoint.setAttribute('name','volumeTracker');
-                testState.currentStore.XMLDOM.children[0].appendChild(storePoint);
+                testState.currentStore.XMLDOM.getElementsByTagName('metric')[0].appendChild(storePoint);
             }
             else {
                 storePoint = storePoint[0];