-
Type:
Bug
-
Resolution: Timed out
-
Priority:
Medium
-
None
-
Affects Version/s: 5.2, 6.1.3
-
Component/s: Issue - Create Issue
-
5.02
-
Severity 2 - Major
-
In issue collector the custom trigger function is being called before collector is fully ready. To be exact, it's called before DOM elements for the collector are being created.
My quick guess is that moving entire if statement from line 33 of bootstrap.js to the end of the function would solve the issue.
I have found this bug when I wanted to show issue collector immediately after page load (so I would basically call showDialog function directly in the custom trigger function). Temporary, dirty fix for that I found is running code inside trigger function in setTimeout(fn,0);.
Code to reproduce the problem
// handle issue collector window.ATL_JQ_PAGE_PROPS = { "triggerFunction": function(showCollectorDialog) { // show issue collector onload, when location hash is 'feedback' AJS.$(function(){ if (document.location.hash.substring(1) === "feedback") { //setTimeout(showCollectorDialog, 0); // works! showCollectorDialog(); // won't work :( } }); } };
- clones
-
JRADEV-18247 Loading...