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( 'core.pkg.css' => '559c85eb', - 'core.pkg.js' => '6be6b2fa', + 'core.pkg.js' => '6a4f677f', 'darkconsole.pkg.js' => '8ab24e01', 'differential.pkg.css' => '3500921f', 'differential.pkg.js' => 'c0506961', @@ -355,7 +355,7 @@ 'rsrc/js/application/config/behavior-reorder-fields.js' => '14a827de', 'rsrc/js/application/conpherence/ConpherenceThreadManager.js' => 'bb928342', 'rsrc/js/application/conpherence/behavior-durable-column.js' => 'a0216452', - 'rsrc/js/application/conpherence/behavior-menu.js' => 'cda6de80', + 'rsrc/js/application/conpherence/behavior-menu.js' => 'db6c0ba7', 'rsrc/js/application/conpherence/behavior-pontificate.js' => '21ba5861', 'rsrc/js/application/conpherence/behavior-quicksand-blacklist.js' => '7927a7d3', 'rsrc/js/application/conpherence/behavior-widget-pane.js' => '1ec93bcf', @@ -449,7 +449,7 @@ 'rsrc/js/core/Prefab.js' => '72da38cc', 'rsrc/js/core/ShapedRequest.js' => '7cbe244b', 'rsrc/js/core/TextAreaUtils.js' => '5c93c52c', - 'rsrc/js/core/Title.js' => '5c1c758c', + 'rsrc/js/core/Title.js' => 'df5e11d2', 'rsrc/js/core/ToolTip.js' => '1d298e3a', 'rsrc/js/core/behavior-active-nav.js' => 'e379b58e', 'rsrc/js/core/behavior-audio-source.js' => '59b251eb', @@ -557,7 +557,7 @@ 'javelin-behavior-boards-dropdown' => '0ec56e1d', 'javelin-behavior-choose-control' => '6153c708', 'javelin-behavior-config-reorder-fields' => '14a827de', - 'javelin-behavior-conpherence-menu' => 'cda6de80', + 'javelin-behavior-conpherence-menu' => 'db6c0ba7', 'javelin-behavior-conpherence-pontificate' => '21ba5861', 'javelin-behavior-conpherence-widget-pane' => '1ec93bcf', 'javelin-behavior-countdown-timer' => 'e4cc26b3', @@ -746,7 +746,7 @@ 'phabricator-source-code-view-css' => '2ceee894', 'phabricator-standard-page-view' => 'd2a6518d', 'phabricator-textareautils' => '5c93c52c', - 'phabricator-title' => '5c1c758c', + 'phabricator-title' => 'df5e11d2', 'phabricator-tooltip' => '1d298e3a', 'phabricator-transaction-view-css' => 'bd9f9f6e', 'phabricator-ui-example-css' => '528b19de', @@ -1215,9 +1215,6 @@ 'javelin-uri', 'javelin-routable', ), - '5c1c758c' => array( - 'javelin-install', - ), '5c54cbf3' => array( 'javelin-behavior', 'javelin-stratcom', @@ -1760,18 +1757,6 @@ 'javelin-stratcom', 'phabricator-phtize', ), - 'cda6de80' => array( - 'javelin-behavior', - 'javelin-dom', - 'javelin-util', - 'javelin-stratcom', - 'javelin-workflow', - 'javelin-behavior-device', - 'javelin-history', - 'javelin-vector', - 'phabricator-shaped-request', - 'conpherence-thread-manager', - ), 'd19198c8' => array( 'javelin-install', 'javelin-dom', @@ -1811,6 +1796,19 @@ 'javelin-util', 'phabricator-shaped-request', ), + 'db6c0ba7' => array( + 'javelin-behavior', + 'javelin-dom', + 'javelin-util', + 'javelin-stratcom', + 'javelin-workflow', + 'javelin-behavior-device', + 'javelin-history', + 'javelin-vector', + 'phabricator-title', + 'phabricator-shaped-request', + 'conpherence-thread-manager', + ), 'dbbf48b6' => array( 'javelin-behavior', 'javelin-stratcom', @@ -1824,6 +1822,9 @@ 'javelin-typeahead-ondemand-source', 'javelin-dom', ), + 'df5e11d2' => array( + 'javelin-install', + ), 'e10f8e18' => array( 'javelin-behavior', 'javelin-dom', 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 @@ -8,6 +8,7 @@ * javelin-behavior-device * javelin-history * javelin-vector + * phabricator-title * phabricator-shaped-request * conpherence-thread-manager */ @@ -151,10 +152,10 @@ } JX.History.replace(config.baseURI + uri_suffix); if (data.title) { - document.title = data.title; + JX.Title.setTitle(data.title); } else if (_thread.node) { var threadData = JX.Stratcom.getData(_thread.node); - document.title = threadData.title; + JX.Title.setTitle(threadData.title); } } diff --git a/webroot/rsrc/js/core/Title.js b/webroot/rsrc/js/core/Title.js --- a/webroot/rsrc/js/core/Title.js +++ b/webroot/rsrc/js/core/Title.js @@ -18,6 +18,12 @@ self._update(); }, + setTitle: function(title) { + var self = JX.Title; + self._title = title; + self._update(); + }, + _update: function() { var self = JX.Title;