Commit 950eaf60 authored by Steffen Michels's avatar Steffen Michels

pass event of itasks.htmlEvent explicitly, as the implicit method is not supported by Firefox

parent 8b512322
Pipeline #26037 passed with stage
in 5 minutes and 11 seconds
......@@ -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", [])]
}
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment