From 1400524de03ae54ea506124041a5f779d9cf895a Mon Sep 17 00:00:00 2001 From: daniel rub Date: Tue, 10 Aug 2021 14:16:01 +0200 Subject: [PATCH] fixed: dynamic journey flow end, added dynamic journey xml demo file --- demo_dynamic_journey.xml | 292 +++++++++++++++++++++++++++++++++++++++ djs.js | 2 +- 2 files changed, 293 insertions(+), 1 deletion(-) create mode 100644 demo_dynamic_journey.xml diff --git a/demo_dynamic_journey.xml b/demo_dynamic_journey.xml new file mode 100644 index 0000000..51f4165 --- /dev/null +++ b/demo_dynamic_journey.xml @@ -0,0 +1,292 @@ + + + ShoeMarket + Selling Shoes + + + +
+ + + Please Select Your Shoes Colour + + +
+ + + + + +
+
+
+
\ No newline at end of file diff --git a/djs.js b/djs.js index 8e24a1c..e879ac7 100644 --- a/djs.js +++ b/djs.js @@ -31,7 +31,7 @@ class DJS { get next() { if (this.menuIndex != 0 && 'options' in this.activeInstructions) { let instructions = this.activeInstructions['options']['optionslist']['option'][this.menuIndex-1]['instructions']; - this.activeInstructions = instructions; + this.activeInstructions = this.instructions = instructions; } this.buildMenus();