# HG changeset patch # User Nicholas Jillings # Date 1456145095 0 # Node ID 4560587673b4f9b3e1e5e0249179aaaf8f324872 # Parent 47bfd9594617fa3d1ee78e33ce0088628134460e Bug #1583 Fix. Popup buttons hidden on successful submission. diff -r 47bfd9594617 -r 4560587673b4 core.js --- a/core.js Mon Feb 22 12:33:56 2016 +0000 +++ b/core.js Mon Feb 22 12:44:55 2016 +0000 @@ -368,6 +368,8 @@ popup.showPopup(); popup.popupContent.innerHTML = null; popup.popupContent.textContent = "Submitting. Please Wait"; + popup.hideNextButton(); + popup.hidePreviousButton(); } } @@ -738,6 +740,18 @@ blank.style.height = window.innerHeight; } }; + this.hideNextButton = function() { + this.buttonProceed.style.visibility = "hidden"; + } + this.hidePreviousButton = function() { + this.buttonPrevious.style.visibility = "hidden"; + } + this.showNextButton = function() { + this.buttonProceed.style.visibility = "visible"; + } + this.showPreviousButton = function() { + this.buttonPrevious.style.visibility = "visible"; + } } function advanceState()