mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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>
This commit is contained in:
parent
3778f94f6f
commit
a922e52b8f
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue