mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-28 00:10:57 +01:00
a4a24b4283
Summary: This was missed in a recent rename. Test Plan: No more console exception. Reviewers: btrahan, chad Reviewed By: chad Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D11916
31 lines
860 B
JavaScript
31 lines
860 B
JavaScript
/**
|
|
* @provides javelin-behavior-durable-column
|
|
* @requires javelin-behavior
|
|
* javelin-dom
|
|
* javelin-stratcom
|
|
* javelin-scrollbar
|
|
* javelin-quicksand
|
|
* phabricator-keyboard-shortcut
|
|
*/
|
|
|
|
JX.behavior('durable-column', function() {
|
|
|
|
var frame = JX.$('phabricator-standard-page');
|
|
var quick = JX.$('phabricator-standard-page-body');
|
|
var show = false;
|
|
|
|
new JX.KeyboardShortcut('\\', 'Toggle Column (Prototype)')
|
|
.setHandler(function() {
|
|
show = !show;
|
|
JX.DOM.alterClass(frame, 'with-durable-column', show);
|
|
JX.$('durable-column').style.display = (show ? 'block' : 'none');
|
|
JX.Stratcom.invoke('resize');
|
|
JX.Quicksand.setFrame(show ? quick : null);
|
|
})
|
|
.register();
|
|
|
|
new JX.Scrollbar(JX.$('conpherence-durable-column-content'));
|
|
|
|
JX.Quicksand.start();
|
|
|
|
});
|