Hi !
Thank You for Your comments and support!
Yes, my 3 dialogs are defined within an .vm file which gets loaded in a Webpanel.
Within my dialog I have selects and inputs which need to get initialized, before the dialog is shown.
I suppose I should move the initialization code to dlg.on(‘show’, function() {});
I will check out Your samples and see how I can incorporate them into my plugin.
Will there still be a aui-blanket created for dialogs coming from JS ?
Regarding the JIRA.CONTENT_ADDED_REASON.panelRefreshed events which are delivered multiple times I collected some log output with Jira running with atlas-debug.
“github-accessor-panel” is my panel, “my-panel-html” is a div within the panel html code
In the Single issue view
panelRefreshed event: “details-module”, my-panel-html found: 0
panelRefreshed event: “descriptionmodule”, my-panel-html found: 0
panelRefreshed event: “dnd-metadata”, my-panel-html found: 0
panelRefreshed event: “attachmentmodule”, my-panel-html found: 0
panelRefreshed event: “activitymodule”, my-panel-html found: 0
panelRefreshed event: “”, my-panel-html found: 0
panelRefreshed event: “peoplemodule”, my-panel-html found: 0
panelRefreshed event: “datesmodule”, my-panel-html found: 0
panelRefreshed event: “hipchat-viewissue-panel”, my-panel-html found: 0
panelRefreshed event: “github–accessor–panel”, my-panel-html found: 1
panelRefreshed event: “”, my-panel-html found: 1
Changing from one issue to another in the Issue List View (left side of screen)
The panelRefreshed event is delivered at least 2 times for every panel
panelRefreshed event: “stalker”, my-panel-html found: 0
panelRefreshed event: “details-module”, my-panel-html found: 0
panelRefreshed event: “descriptionmodule”, my-panel-html found: 0
panelRefreshed event: “dnd-metadata”, my-panel-html found: 0
panelRefreshed event: “attachmentmodule”, my-panel-html found: 0
panelRefreshed event: “activitymodule”, my-panel-html found: 0
panelRefreshed event: “addcomment”, my-panel-html found: 0
panelRefreshed event: “peoplemodule”, my-panel-html found: 0
panelRefreshed event: “datesmodule”, my-panel-html found: 0
panelRefreshed event: “hipchat-viewissue-panel”, my-panel-html found: 0
panelRefreshed event: “github–accessor–panel”, my-panel-html found: 1
panelRefreshed event: “stalker”, my-panel-html found: 0
panelRefreshed event: “details-module”, my-panel-html found: 0
panelRefreshed event: “descriptionmodule”, my-panel-html found: 0
panelRefreshed event: “dnd-metadata”, my-panel-html found: 0
panelRefreshed event: “attachmentmodule”, my-panel-html found: 0
panelRefreshed event: “activitymodule”, my-panel-html found: 0
panelRefreshed event: “addcomment”, my-panel-html found: 0
panelRefreshed event: “peoplemodule”, my-panel-html found: 0
panelRefreshed event: “datesmodule”, my-panel-html found: 0
panelRefreshed event: “hipchat-viewissue-panel”, my-panel-html found: 0
panelRefreshed event: “github–accessor–panel”, my-panel-html found: 1
panelRefreshed event: “”, my-panel-html found: 1
Sometimes 3 times
panelRefreshed event: “stalker”, my-panel-html found: 0
panelRefreshed event: “details-module”, my-panel-html found: 0
panelRefreshed event: “descriptionmodule”, my-panel-html found: 0
panelRefreshed event: “dnd-metadata”, my-panel-html found: 0
panelRefreshed event: “attachmentmodule”, my-panel-html found: 0
panelRefreshed event: “activitymodule”, my-panel-html found: 0
panelRefreshed event: “addcomment”, my-panel-html found: 0
panelRefreshed event: “peoplemodule”, my-panel-html found: 0
panelRefreshed event: “datesmodule”, my-panel-html found: 0
panelRefreshed event: “hipchat-viewissue-panel”, my-panel-html found: 0
panelRefreshed event: “github–accessor–panel”, my-panel-html found: 1
panelRefreshed event: “stalker”, my-panel-html found: 0
panelRefreshed event: “details-module”, my-panel-html found: 0
panelRefreshed event: “descriptionmodule”, my-panel-html found: 0
panelRefreshed event: “dnd-metadata”, my-panel-html found: 0
panelRefreshed event: “attachmentmodule”, my-panel-html found: 0
panelRefreshed event: “activitymodule”, my-panel-html found: 0
panelRefreshed event: “addcomment”, my-panel-html found: 0
panelRefreshed event: “peoplemodule”, my-panel-html found: 0
panelRefreshed event: “datesmodule”, my-panel-html found: 0
panelRefreshed event: “hipchat-viewissue-panel”, my-panel-html found: 0
panelRefreshed event: “github–accessor–panel”, my-panel-html found: 1
panelRefreshed event: “”, my-panel-html found: 1
panelRefreshed event: “details-module”, my-panel-html found: 0
panelRefreshed event: “descriptionmodule”, my-panel-html found: 0
panelRefreshed event: “dnd-metadata”, my-panel-html found: 0
panelRefreshed event: “attachmentmodule”, my-panel-html found: 0
panelRefreshed event: “activitymodule”, my-panel-html found: 0
panelRefreshed event: “addcomment”, my-panel-html found: 0
panelRefreshed event: “peoplemodule”, my-panel-html found: 0
panelRefreshed event: “datesmodule”, my-panel-html found: 0
panelRefreshed event: “hipchat-viewissue-panel”, my-panel-html found: 0
panelRefreshed event: “github–accessor–panel”, my-panel-html found: 1
panelRefreshed event: “stalker”, my-panel-html found: 0
panelRefreshed event: “”, my-panel-html found: 1
I solved this by adding an global init flag which helps ignoring the re-occuring events.
Thanx & regards,
Hans