summaryrefslogtreecommitdiffstats
path: root/theme/list_lib.js
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-17 10:15:08 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-17 10:15:08 -0700
commita922e52b8f4e11233d1c3b79c41d5f046b08d7ba (patch)
tree02b96f35a3fdf239cc8d9711ed051bd8f74cbd12 /theme/list_lib.js
parent3778f94f6f3374a5a3a59b24c0f8e7c1f7136fc2 (diff)
downloadsubsurface-a922e52b8f4e11233d1c3b79c41d5f046b08d7ba.tar.gz
HTML Exporter: make JS work on Firefox as well
It appears the standard way to figure out what type of element is sending the event is to use .target instead of .toElement - specifically, Firefox doesn't understand .toElement and so the expansion of dives by clicking on them didn't work in Firefox. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'theme/list_lib.js')
-rw-r--r--theme/list_lib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/theme/list_lib.js b/theme/list_lib.js
index a2a50f8f5..eb26b1eaa 100644
--- a/theme/list_lib.js
+++ b/theme/list_lib.js
@@ -167,7 +167,7 @@ function setNumberOfDives(e)
function toggleExpantion(e, ul)
{
- if (e.toElement.localName === "a" ) {
+ if (e.target.localName === "a" ) {
return;
}
if (!items[ul.id].expanded) {