# HG changeset patch # User Nicholas Jillings # Date 1456145095 0 # Node ID c8c633c6590e719bafe70cc38543b696f61d0898 # Parent 616c602a6a6e02a7980680374744909346c7e4c4 Bug #1583 Fix. Popup buttons hidden on successful submission. diff -r 616c602a6a6e -r c8c633c6590e 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()