From 950eaf60f5204a8c754a9bf8212fbc377d9550cc Mon Sep 17 00:00:00 2001 From: Steffen Michels Date: Wed, 26 Jun 2019 16:41:17 +0200 Subject: [PATCH] pass event of itasks.htmlEvent explicitly, as the implicit method is not supported by Firefox --- Examples/GIS/LeafletMapExample.icl | 2 +- Libraries/iTasks/UI/WebPublic/js/itasks-core.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples/GIS/LeafletMapExample.icl b/Examples/GIS/LeafletMapExample.icl index 501e4e202..6d5fe6c84 100644 --- a/Examples/GIS/LeafletMapExample.icl +++ b/Examples/GIS/LeafletMapExample.icl @@ -113,7 +113,7 @@ where , title = "Test Window" , content = DivTag [] [H1Tag [] [Text "This is test content!"] - ,ATag [HrefAttr "#",OnclickAttr "itasks.htmlEvent('closewindows')"] [Text "Close windows"] + ,ATag [HrefAttr "#",OnclickAttr "itasks.htmlEvent(event, 'closewindows')"] [Text "Close windows"] ] , relatedMarkers = [(LeafletObjectID "home", [])] } diff --git a/Libraries/iTasks/UI/WebPublic/js/itasks-core.js b/Libraries/iTasks/UI/WebPublic/js/itasks-core.js index 6402fd156..89665d512 100644 --- a/Libraries/iTasks/UI/WebPublic/js/itasks-core.js +++ b/Libraries/iTasks/UI/WebPublic/js/itasks-core.js @@ -688,7 +688,7 @@ itasks.ConnectionPool = { }; //Global functions that you can use to trigger edit events from pieces of html code displayed by components -itasks.htmlEvent = function(msg) { +itasks.htmlEvent = function(event, msg) { var domEl = event.target; var component = null; -- GitLab