From d8e7b9c40d4710f4abdb5564b311cbc9e8bfcde6 Mon Sep 17 00:00:00 2001 From: noliverio Date: Sat, 9 Sep 2017 02:16:19 -0400 Subject: [PATCH] Proposed solution to isue 159 toggleSection in Firefox --- public/assets/js/generalFunctions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/assets/js/generalFunctions.js b/public/assets/js/generalFunctions.js index 7c46344e..3c3a60d9 100644 --- a/public/assets/js/generalFunctions.js +++ b/public/assets/js/generalFunctions.js @@ -3,7 +3,7 @@ function toggleSection(event){ var dataSet = event.target.dataset; var status = dataSet.open; - var masterElement = document.getElementById(event.srcElement.id); + var masterElement = document.getElementById(event.target.id||event.srcElement.id); var slaveElement = document.getElementById(dataSet.slaveelementid); if (status === "false") {