2014-04-30 23:29:14 +02:00
|
|
|
/**
|
|
|
|
* @provides javelin-behavior-dashboard-async-panel
|
|
|
|
* @requires javelin-behavior
|
|
|
|
* javelin-dom
|
|
|
|
* javelin-workflow
|
|
|
|
*/
|
|
|
|
|
|
|
|
JX.behavior('dashboard-async-panel', function(config) {
|
|
|
|
var panel = JX.$(config.panelID);
|
|
|
|
panel.style.opacity = '0.5';
|
|
|
|
|
2014-05-16 04:31:13 +02:00
|
|
|
var data = {
|
|
|
|
parentPanelPHIDs: config.parentPanelPHIDs.join(','),
|
2014-05-19 23:04:26 +02:00
|
|
|
headerMode: config.headerMode,
|
2019-04-12 19:39:11 +02:00
|
|
|
contextPHID: config.contextPHID,
|
2019-04-13 01:50:59 +02:00
|
|
|
movable: config.movable,
|
2019-04-12 19:39:11 +02:00
|
|
|
panelKey: config.panelKey
|
2014-05-16 04:31:13 +02:00
|
|
|
};
|
|
|
|
|
2014-04-30 23:29:14 +02:00
|
|
|
new JX.Workflow(config.uri)
|
2014-05-16 04:31:13 +02:00
|
|
|
.setData(data)
|
2014-04-30 23:29:14 +02:00
|
|
|
.setHandler(function(r) {
|
|
|
|
JX.DOM.replace(panel, JX.$H(r.panelMarkup));
|
|
|
|
})
|
|
|
|
.start();
|
|
|
|
});
|