changeset 1147:8590621eb0e9

Fixed checkbox survey collection. Minor corrections to horizontal sliders. Working Chrome (Win/OSX)
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Thu, 14 Jan 2016 12:19:42 +0000
parents c87a02efdc37
children f819af3f47da
files core.js interfaces/horizontal-sliders.css interfaces/horizontal-sliders.js
diffstat 3 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/core.js	Thu Jan 14 11:22:31 2016 +0000
+++ b/core.js	Thu Jan 14 12:19:42 2016 +0000
@@ -2918,8 +2918,8 @@
 				for (var i=0; i<node.response.length; i++)
 				{
 					var checkNode = this.parent.document.createElement('response');
-					checkNode.setAttribute('name',node.response.name);
-					checkNode.setAttribute('checked',node.response.checked);
+					checkNode.setAttribute('name',node.response[i].name);
+					checkNode.setAttribute('checked',node.response[i].checked);
 					surveyresult.appendChild(checkNode);
 				}
 				break;
--- a/interfaces/horizontal-sliders.css	Thu Jan 14 11:22:31 2016 +0000
+++ b/interfaces/horizontal-sliders.css	Thu Jan 14 12:19:42 2016 +0000
@@ -101,13 +101,13 @@
 
 input.track-slider-range {
 	float: left;
-	margin: 2px 0px;
+	margin: 2px 10px;
 }
 
 input[type=range]
 {
     height: 94px;
-    padding: 0 10px;
+    padding: 0px;
     color: rgb(255, 144, 144);
 }
 
--- a/interfaces/horizontal-sliders.js	Thu Jan 14 11:22:31 2016 +0000
+++ b/interfaces/horizontal-sliders.js	Thu Jan 14 12:19:42 2016 +0000
@@ -271,7 +271,9 @@
 		// If there is no value node (such as outside reference), return null
 		// If there are multiple value nodes (such as multiple scale / 2D scales), return an array of nodes with each value node having an 'interfaceName' attribute
 		// Use storage.document.createElement('value'); to generate the XML node.
-		
+		var node = storage.document.createElement('value');
+        node.textContent = this.slider.value;
+        return node;
 	};
 };