mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 20:40:56 +01:00
18 lines
406 B
JavaScript
18 lines
406 B
JavaScript
|
/**
|
||
|
* @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';
|
||
|
|
||
|
new JX.Workflow(config.uri)
|
||
|
.setHandler(function(r) {
|
||
|
JX.DOM.replace(panel, JX.$H(r.panelMarkup));
|
||
|
})
|
||
|
.start();
|
||
|
});
|