diff --git a/Examples/GIS/LeafletMapExample.icl b/Examples/GIS/LeafletMapExample.icl index 501e4e202429d69042583834fe84f5fd012fec0f..6d5fe6c8484a04424af7f4299b8357a7decb802b 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 6402fd156f349322cfd28e38b721085163516f96..89665d512087cc16329812786ea66342943f7e32 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;