# HG changeset patch # User Giulio Moro # Date 1461955230 -3600 # Node ID 9e7c56327d9cb6c46d177259ae89d6bcb1badf71 # Parent 2cc0088b7461ba3e6da595f334b2ebb45ca7461d Check for popup.hideNextButton and popup.hidePreviousButton before hiding them diff -r 2cc0088b7461 -r 9e7c56327d9c js/core.js --- a/js/core.js Fri Apr 29 19:26:21 2016 +0100 +++ b/js/core.js Fri Apr 29 19:40:30 2016 +0100 @@ -469,8 +469,12 @@ popup.showPopup(); popup.popupContent.innerHTML = null; popup.popupContent.textContent = "Submitting. Please Wait"; - popup.hideNextButton(); - popup.hidePreviousButton(); + if(typeof(popup.hideNextButton) === "function"){ + popup.hideNextButton(); + } + if(typeof(popup.hidePreviousButton) === "function"){ + popup.hidePreviousButton(); + } } }