mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 14:00:56 +01:00
c1c5fbce21
Summary: Minor rebuild / redesign of Conpherence. Most of this is new UX and tossing out things like widgets, device fallbacks. I expect some of the UI to get more polished after next pass, but most everything here is in place. - Removed "Widgets", now just a single Participants pane - Added "Topic" - New header - Settings, Edit are action icons - Removed a lot of JS - Simplified CSS as much as I could Test Plan: Desktop, Tablet, Mobile. Adding and removing people. Setting new topics, new rooms. {F1828662} {F1828669} Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D16550
29 lines
660 B
JavaScript
29 lines
660 B
JavaScript
/**
|
|
* @provides javelin-behavior-toggle-widget
|
|
* @requires javelin-behavior
|
|
* javelin-dom
|
|
* javelin-util
|
|
* javelin-workflow
|
|
* javelin-stratcom
|
|
*/
|
|
|
|
JX.behavior('toggle-widget', function(config) {
|
|
|
|
function _toggleColumn(e) {
|
|
e.kill();
|
|
var node = JX.$('conpherence-main-layout');
|
|
config.show = !config.show;
|
|
JX.DOM.alterClass(node, 'hide-widgets', !config.show);
|
|
JX.Stratcom.invoke('resize');
|
|
|
|
new JX.Request(config.settingsURI)
|
|
.setData({value: (config.show ? 1 : 0)})
|
|
.send();
|
|
}
|
|
|
|
JX.Stratcom.listen(
|
|
'click',
|
|
'conpherence-widget-toggle',
|
|
_toggleColumn);
|
|
|
|
});
|