mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-28 01:32:42 +01:00
27 lines
604 B
JavaScript
27 lines
604 B
JavaScript
|
/**
|
||
|
* @provides javelin-behavior-conpherence-widget-pane
|
||
|
* @requires javelin-behavior
|
||
|
* javelin-dom
|
||
|
* javelin-stratcom
|
||
|
*/
|
||
|
|
||
|
JX.behavior('conpherence-widget-pane', function(config) {
|
||
|
|
||
|
JX.Stratcom.listen(
|
||
|
'click',
|
||
|
'conpherence-change-widget',
|
||
|
function(e) {
|
||
|
e.kill();
|
||
|
var data = e.getNodeData('conpherence-change-widget');
|
||
|
for (var widget in config.widgetRegistery) {
|
||
|
if (widget == data.widget) {
|
||
|
JX.$(widget).style.display = 'block';
|
||
|
} else {
|
||
|
JX.$(widget).style.display = 'none';
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
);
|
||
|
|
||
|
});
|