Give dashboards basic rendering and Ajax support
Summary: Ref T3583. Let dashboards "render", sorta.
Test Plan: {F149187}
Reviewers: chad, btrahan
Reviewed By: btrahan
Subscribers: epriestley
Maniphest Tasks: T3583
Differential Revision: https://secure.phabricator.com/D8917
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @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();
|
||||
});
|
||||
Reference in New Issue
Block a user