changeset 2325:9e7c56327d9c

Check for popup.hideNextButton and popup.hidePreviousButton before hiding them
author Giulio Moro <giuliomoro@yahoo.it>
date Fri, 29 Apr 2016 19:40:30 +0100
parents 2cc0088b7461
children d6cc7d948ae9 ced5aedb4cda
files js/core.js
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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();
+		}
 	}
 }