Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14060656
D16725.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
7 KB
Referenced Files
None
Subscribers
None
D16725.diff
View Options
diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -8,7 +8,7 @@
return array(
'names' => array(
'conpherence.pkg.css' => 'fabab894',
- 'conpherence.pkg.js' => 'cbe4d9be',
+ 'conpherence.pkg.js' => '6249a1cf',
'core.pkg.css' => 'b99bbf5e',
'core.pkg.js' => '2d9fc958',
'darkconsole.pkg.js' => 'e7393ebb',
@@ -438,11 +438,11 @@
'rsrc/js/application/conpherence/ConpherenceThreadManager.js' => '358c717b',
'rsrc/js/application/conpherence/behavior-conpherence-search.js' => '9bbf3762',
'rsrc/js/application/conpherence/behavior-durable-column.js' => 'aa3bd034',
- 'rsrc/js/application/conpherence/behavior-menu.js' => '07928ca3',
+ 'rsrc/js/application/conpherence/behavior-menu.js' => '7524fcfa',
'rsrc/js/application/conpherence/behavior-participant-pane.js' => '8604caa8',
'rsrc/js/application/conpherence/behavior-pontificate.js' => 'f2e58483',
'rsrc/js/application/conpherence/behavior-quicksand-blacklist.js' => '7927a7d3',
- 'rsrc/js/application/conpherence/behavior-toggle-widget.js' => '9bdbbab0',
+ 'rsrc/js/application/conpherence/behavior-toggle-widget.js' => '3dbf94d5',
'rsrc/js/application/countdown/timer.js' => 'e4cc26b3',
'rsrc/js/application/daemon/behavior-bulk-job-reload.js' => 'edf8a145',
'rsrc/js/application/dashboard/behavior-dashboard-async-panel.js' => '469c0d9e',
@@ -663,7 +663,7 @@
'javelin-behavior-choose-control' => '327a00d1',
'javelin-behavior-comment-actions' => '0300eae6',
'javelin-behavior-config-reorder-fields' => 'b6993408',
- 'javelin-behavior-conpherence-menu' => '07928ca3',
+ 'javelin-behavior-conpherence-menu' => '7524fcfa',
'javelin-behavior-conpherence-participant-pane' => '8604caa8',
'javelin-behavior-conpherence-pontificate' => 'f2e58483',
'javelin-behavior-conpherence-search' => '9bbf3762',
@@ -772,7 +772,7 @@
'javelin-behavior-test-payment-form' => 'fc91ab6c',
'javelin-behavior-time-typeahead' => '522431f7',
'javelin-behavior-toggle-class' => '92b9ec77',
- 'javelin-behavior-toggle-widget' => '9bdbbab0',
+ 'javelin-behavior-toggle-widget' => '3dbf94d5',
'javelin-behavior-typeahead-browse' => '635de1ec',
'javelin-behavior-typeahead-search' => '93d0c9e3',
'javelin-behavior-view-placeholder' => '47830651',
@@ -1029,20 +1029,6 @@
'phabricator-prefab',
'phuix-icon-view',
),
- '07928ca3' => array(
- 'javelin-behavior',
- 'javelin-dom',
- 'javelin-util',
- 'javelin-stratcom',
- 'javelin-workflow',
- 'javelin-behavior-device',
- 'javelin-history',
- 'javelin-vector',
- 'javelin-scrollbar',
- 'phabricator-title',
- 'phabricator-shaped-request',
- 'conpherence-thread-manager',
- ),
'08675c6d' => array(
'javelin-behavior',
'javelin-behavior-device',
@@ -1227,6 +1213,13 @@
'javelin-util',
'javelin-uri',
),
+ '3dbf94d5' => array(
+ 'javelin-behavior',
+ 'javelin-dom',
+ 'javelin-util',
+ 'javelin-workflow',
+ 'javelin-stratcom',
+ ),
'3f5d6dbf' => array(
'javelin-behavior',
'javelin-dom',
@@ -1548,6 +1541,20 @@
'javelin-vector',
'javelin-dom',
),
+ '7524fcfa' => array(
+ 'javelin-behavior',
+ 'javelin-dom',
+ 'javelin-util',
+ 'javelin-stratcom',
+ 'javelin-workflow',
+ 'javelin-behavior-device',
+ 'javelin-history',
+ 'javelin-vector',
+ 'javelin-scrollbar',
+ 'phabricator-title',
+ 'phabricator-shaped-request',
+ 'conpherence-thread-manager',
+ ),
'769d3498' => array(
'syntax-default-css',
),
@@ -1766,13 +1773,6 @@
'javelin-workflow',
'javelin-stratcom',
),
- '9bdbbab0' => array(
- 'javelin-behavior',
- 'javelin-dom',
- 'javelin-util',
- 'javelin-workflow',
- 'javelin-stratcom',
- ),
'9ef7d354' => array(
'phui-inline-comment-view-css',
),
diff --git a/src/applications/conpherence/view/ConpherenceLayoutView.php b/src/applications/conpherence/view/ConpherenceLayoutView.php
--- a/src/applications/conpherence/view/ConpherenceLayoutView.php
+++ b/src/applications/conpherence/view/ConpherenceLayoutView.php
@@ -61,26 +61,17 @@
return $this;
}
- public function getWidgetColumnVisible() {
- $widget_key = PhabricatorConpherenceWidgetVisibleSetting::SETTINGKEY;
- $user = $this->getUser();
- return (bool)$user->getUserSetting($widget_key, false);
- }
-
protected function getTagAttributes() {
$classes = array();
- if (!$this->getWidgetColumnVisible()) {
- $classes[] = 'hide-widgets';
- }
+ $classes[] = 'conpherence-layout';
+ $classes[] = 'hide-widgets';
+ $classes[] = 'conpherence-role-'.$this->role;
return array(
- 'id' => 'conpherence-main-layout',
- 'sigil' => 'conpherence-layout',
- 'class' => 'conpherence-layout '.
- implode(' ', $classes).
- ' conpherence-role-'.$this->role,
- );
-
+ 'id' => 'conpherence-main-layout',
+ 'sigil' => 'conpherence-layout',
+ 'class' => implode(' ', $classes),
+ );
}
protected function getTagContent() {
diff --git a/webroot/rsrc/js/application/conpherence/behavior-menu.js b/webroot/rsrc/js/application/conpherence/behavior-menu.js
--- a/webroot/rsrc/js/application/conpherence/behavior-menu.js
+++ b/webroot/rsrc/js/application/conpherence/behavior-menu.js
@@ -191,16 +191,6 @@
if (_thread.visible !== null || !config.hasWidgets) {
reloadWidget(data);
- } else {
- JX.Stratcom.invoke(
- 'conpherence-update-widgets',
- null,
- {
- widget : getDefaultWidget(),
- buildSelectors : false,
- toggleWidget : true,
- threadID : _thread.selected
- });
}
_thread.visible = _thread.selected;
@@ -259,32 +249,10 @@
var root = JX.DOM.find(document, 'div', 'conpherence-layout');
var widgets_root = JX.DOM.find(root, 'div', 'conpherence-widgets-holder');
JX.DOM.setContent(widgets_root, JX.$H(response.widgets));
-
- JX.Stratcom.invoke(
- 'conpherence-update-widgets',
- null,
- {
- widget : widget,
- buildSelectors : true,
- toggleWidget : true,
- threadID : _thread.selected
- });
-
- markWidgetLoading(false);
}
function getDefaultWidget() {
- var device = JX.Device.getDevice();
- var widget = 'conpherence-message-pane';
- if (device == 'desktop') {
- widget = 'widgets-people';
- var uri = JX.$U(location.href);
- var params = uri.getQueryParams();
- if ('settings' in params) {
- widget = 'widgets-settings';
- }
- }
- return widget;
+ return 'widgets-people';
}
/**
diff --git a/webroot/rsrc/js/application/conpherence/behavior-toggle-widget.js b/webroot/rsrc/js/application/conpherence/behavior-toggle-widget.js
--- a/webroot/rsrc/js/application/conpherence/behavior-toggle-widget.js
+++ b/webroot/rsrc/js/application/conpherence/behavior-toggle-widget.js
@@ -9,6 +9,20 @@
JX.behavior('toggle-widget', function(config) {
+ var device;
+
+ function init() {
+ device = JX.Device.getDevice();
+ if (device != 'phone') {
+ var node = JX.$('conpherence-main-layout');
+ JX.DOM.alterClass(node, 'hide-widgets', !config.show);
+ JX.Stratcom.invoke('resize');
+ } else {
+ config.show = 0;
+ }
+ }
+ init();
+
function _toggleColumn(e) {
e.kill();
var node = JX.$('conpherence-main-layout');
@@ -16,9 +30,11 @@
JX.DOM.alterClass(node, 'hide-widgets', !config.show);
JX.Stratcom.invoke('resize');
- new JX.Request(config.settingsURI)
- .setData({value: (config.show ? 1 : 0)})
- .send();
+ if (device != 'phone') {
+ new JX.Request(config.settingsURI)
+ .setData({value: (config.show ? 1 : 0)})
+ .send();
+ }
}
JX.Stratcom.listen(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 19, 2:42 AM (14 h, 6 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6719510
Default Alt Text
D16725.diff (7 KB)
Attached To
Mode
D16725: Don't show participants in Conpherence left open on mobile
Attached
Detach File
Event Timeline
Log In to Comment