mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 12:52:42 +01:00
Set body classes via Quicksand config
Summary: Sends and stores additional body classes at the page level. Removes old ones, sets new ones. Test Plan: home -> application search -> colored workboard -> config -> home with persistent chat open and minimized. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D16646
This commit is contained in:
parent
87ebb80059
commit
45af6d7c0e
3 changed files with 19 additions and 13 deletions
|
@ -10,7 +10,7 @@ return array(
|
|||
'conpherence.pkg.css' => 'c8fbe125',
|
||||
'conpherence.pkg.js' => '11f3e07e',
|
||||
'core.pkg.css' => 'cfc3eabe',
|
||||
'core.pkg.js' => '03c1cb09',
|
||||
'core.pkg.js' => '26f1f9bf',
|
||||
'darkconsole.pkg.js' => 'e7393ebb',
|
||||
'differential.pkg.css' => 'e1d704ce',
|
||||
'differential.pkg.js' => '634399e9',
|
||||
|
@ -438,7 +438,7 @@ return array(
|
|||
'rsrc/js/application/config/behavior-reorder-fields.js' => 'b6993408',
|
||||
'rsrc/js/application/conpherence/ConpherenceThreadManager.js' => '01774ab2',
|
||||
'rsrc/js/application/conpherence/behavior-drag-and-drop-photo.js' => 'cf86d16a',
|
||||
'rsrc/js/application/conpherence/behavior-durable-column.js' => 'a0e564c2',
|
||||
'rsrc/js/application/conpherence/behavior-durable-column.js' => 'f62bfb39',
|
||||
'rsrc/js/application/conpherence/behavior-menu.js' => '9eb55204',
|
||||
'rsrc/js/application/conpherence/behavior-participant-pane.js' => '8604caa8',
|
||||
'rsrc/js/application/conpherence/behavior-pontificate.js' => 'f2e58483',
|
||||
|
@ -699,7 +699,7 @@ return array(
|
|||
'javelin-behavior-diffusion-pull-lastmodified' => 'f01586dc',
|
||||
'javelin-behavior-doorkeeper-tag' => 'e5822781',
|
||||
'javelin-behavior-drydock-live-operation-status' => '901935ef',
|
||||
'javelin-behavior-durable-column' => 'a0e564c2',
|
||||
'javelin-behavior-durable-column' => 'f62bfb39',
|
||||
'javelin-behavior-editengine-reorder-configs' => 'd7a74243',
|
||||
'javelin-behavior-editengine-reorder-fields' => 'b59e1e96',
|
||||
'javelin-behavior-error-log' => '6882e80a',
|
||||
|
@ -1774,16 +1774,6 @@ return array(
|
|||
'javelin-util',
|
||||
'phabricator-keyboard-shortcut',
|
||||
),
|
||||
'a0e564c2' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-dom',
|
||||
'javelin-stratcom',
|
||||
'javelin-behavior-device',
|
||||
'javelin-scrollbar',
|
||||
'javelin-quicksand',
|
||||
'phabricator-keyboard-shortcut',
|
||||
'conpherence-thread-manager',
|
||||
),
|
||||
'a155550f' => array(
|
||||
'javelin-install',
|
||||
'javelin-dom',
|
||||
|
@ -2216,6 +2206,16 @@ return array(
|
|||
'javelin-request',
|
||||
'phabricator-keyboard-shortcut',
|
||||
),
|
||||
'f62bfb39' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-dom',
|
||||
'javelin-stratcom',
|
||||
'javelin-behavior-device',
|
||||
'javelin-scrollbar',
|
||||
'javelin-quicksand',
|
||||
'phabricator-keyboard-shortcut',
|
||||
'conpherence-thread-manager',
|
||||
),
|
||||
'f6555212' => array(
|
||||
'javelin-install',
|
||||
'javelin-reactornode',
|
||||
|
|
|
@ -805,6 +805,7 @@ final class PhabricatorStandardPageView extends PhabricatorBarePageView
|
|||
|
||||
return array(
|
||||
'title' => $this->getTitle(),
|
||||
'bodyClasses' => $this->getBodyClasses(),
|
||||
'aphlictDropdownData' => array(
|
||||
$dropdown_query->getNotificationData(),
|
||||
$dropdown_query->getConpherenceData(),
|
||||
|
|
|
@ -347,6 +347,11 @@ JX.behavior('durable-column', function(config, statics) {
|
|||
null,
|
||||
function (e) {
|
||||
var new_data = e.getData().newResponse;
|
||||
var new_classes = new_data.bodyClasses;
|
||||
if (userMinimize) {
|
||||
new_classes = new_classes + ' minimize-column';
|
||||
}
|
||||
document.body.className = new_classes;
|
||||
JX.Title.setTitle(new_data.title);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue