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,
|
|
|
|
dashboardID: config.dashboardID
|
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();
|
|
|
|
});
|