diff test_create/test_core.js @ 543:f81c46b294a9 Dev_main

Bug #1607, #1608 and #1610 fixes.
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Mon, 22 Feb 2016 14:38:45 +0000
parents e23de2023941
children e53b143cea1e
line wrap: on
line diff
--- a/test_create/test_core.js	Mon Feb 22 14:20:50 2016 +0000
+++ b/test_create/test_core.js	Mon Feb 22 14:38:45 2016 +0000
@@ -141,7 +141,11 @@
         this.proceedButton.onclick = function()
         {
             popupObject.popupContent.innerHTML = null;
-            popupObject.shownObject.continue();
+            if(typeof popupObject.shownObject.continue == "function") {
+                popupObject.shownObject.continue();
+            } else {
+                popupObject.hide();
+            }
         };
         this.object.appendChild(this.proceedButton);
         
@@ -198,6 +202,11 @@
             } else {
                 this.backButton.style.visibility = "hidden";
             }
+            if (typeof this.shownObject.continue == "function") {
+                this.proceedButton.textContent = "Next";
+            } else {
+                this.proceedButton.textContent = "Finish";
+            }
             this.show();
         }