# HG changeset patch # User Nicholas Jillings # Date 1505226970 -3600 # Node ID a5a6c44bab6e30a1e4aea465b7367ae3ad0fb2d0 # Parent 664065577426dd15a2989b974460c6d8c6d55d3e Added showBackButton to test create diff -r 664065577426 -r a5a6c44bab6e js/specification.js --- a/js/specification.js Tue Sep 12 15:28:22 2017 +0100 +++ b/js/specification.js Tue Sep 12 15:36:10 2017 +0100 @@ -425,6 +425,7 @@ this.encode = function (doc) { var node = doc.createElement('survey'); node.setAttribute('location', this.location); + node.setAttribute('showBackButton', this.showBackButton); for (var i = 0; i < this.options.length; i++) { node.appendChild(this.options[i].exportXML(doc)); } diff -r 664065577426 -r a5a6c44bab6e test_create.html --- a/test_create.html Tue Sep 12 15:28:22 2017 +0100 +++ b/test_create.html Tue Sep 12 15:36:10 2017 +0100 @@ -142,6 +142,12 @@

Pre Test Survey

+
+
+ Show back button: + +
+

Survey Entry

@@ -273,6 +279,12 @@

Post Test Survey

+
+
+ Show back button: + +
+

Survey Entry

@@ -550,6 +562,12 @@

Pre Page Survey

+
+
+ Show back button: + +
+

Survey Entry

@@ -681,6 +699,12 @@

Post Page Survey

+
+
+ Show back button: + +
+

Survey Entry