diff --git a/src/__celerity_resource_map__.php b/src/__celerity_resource_map__.php index 8f3a56ee34..319d1b3dc1 100644 --- a/src/__celerity_resource_map__.php +++ b/src/__celerity_resource_map__.php @@ -1190,7 +1190,7 @@ celerity_register_resource_map(array( ), 'javelin-behavior-conpherence-menu' => array( - 'uri' => '/res/bcd715e1/rsrc/js/application/conpherence/behavior-menu.js', + 'uri' => '/res/e04bb055/rsrc/js/application/conpherence/behavior-menu.js', 'type' => 'js', 'requires' => array( @@ -1206,7 +1206,7 @@ celerity_register_resource_map(array( ), 'javelin-behavior-conpherence-pontificate' => array( - 'uri' => '/res/fe634761/rsrc/js/application/conpherence/behavior-pontificate.js', + 'uri' => '/res/abc4d947/rsrc/js/application/conpherence/behavior-pontificate.js', 'type' => 'js', 'requires' => array( @@ -1219,7 +1219,7 @@ celerity_register_resource_map(array( ), 'javelin-behavior-conpherence-widget-pane' => array( - 'uri' => '/res/52b80633/rsrc/js/application/conpherence/behavior-widget-pane.js', + 'uri' => '/res/45d53f1f/rsrc/js/application/conpherence/behavior-widget-pane.js', 'type' => 'js', 'requires' => array( diff --git a/src/applications/conpherence/controller/ConpherenceController.php b/src/applications/conpherence/controller/ConpherenceController.php index 0da8322519..a00992e65a 100644 --- a/src/applications/conpherence/controller/ConpherenceController.php +++ b/src/applications/conpherence/controller/ConpherenceController.php @@ -113,14 +113,12 @@ abstract class ConpherenceController extends PhabricatorController { $nav = $this->addConpherencesToNav( $unread_conpherences, $nav, - false, - $for_application); + false); $nav->addLabel(pht('Read')); $nav = $this->addConpherencesToNav( $read_conpherences, $nav, - true, - $for_application); + true); $nav->selectFilter($filter); } else { $nav->addFilter( @@ -135,11 +133,9 @@ abstract class ConpherenceController extends PhabricatorController { private function addConpherencesToNav( array $conpherences, AphrontSideNavFilterView $nav, - $read = false, - $for_application = false) { + $read = false) { $user = $this->getRequest()->getUser(); - $id_suffix = $for_application ? '-menu-item' : '-nav-item'; foreach ($conpherences as $conpherence) { $selected = false; if ($this->getSelectedConpherencePHID() == $conpherence->getPHID()) { @@ -147,7 +143,6 @@ abstract class ConpherenceController extends PhabricatorController { } $item = $this->buildConpherenceMenuItem( $conpherence, - $id_suffix, $selected); $nav->addCustomBlock($item->render()); @@ -192,7 +187,6 @@ abstract class ConpherenceController extends PhabricatorController { protected function buildConpherenceMenuItem( $conpherence, - $id_suffix, $selected) { $user = $this->getRequest()->getUser(); @@ -216,7 +210,7 @@ abstract class ConpherenceController extends PhabricatorController { ->setImageURI($image) ->setMessageText($snippet) ->setUnreadCount($unread_count) - ->setID($conpherence->getPHID().$id_suffix) + ->setID($conpherence->getPHID().'-nav-item') ->addSigil('conpherence-menu-click') ->setMetadata(array('id' => $conpherence->getID())); diff --git a/src/applications/conpherence/controller/ConpherenceUpdateController.php b/src/applications/conpherence/controller/ConpherenceUpdateController.php index 57fb708ae9..60a995551a 100644 --- a/src/applications/conpherence/controller/ConpherenceUpdateController.php +++ b/src/applications/conpherence/controller/ConpherenceUpdateController.php @@ -268,11 +268,6 @@ final class ConpherenceUpdateController extends $selected = true; $nav_item = $this->buildConpherenceMenuItem( $conpherence, - '-nav-item', - $selected); - $menu_item = $this->buildConpherenceMenuItem( - $conpherence, - '-menu-item', $selected); $header = $this->buildHeaderPaneContent($conpherence); @@ -286,7 +281,6 @@ final class ConpherenceUpdateController extends $content = array( 'transactions' => $rendered_transactions, 'latest_transaction_id' => $new_latest_transaction_id, - 'menu_item' => $menu_item->render(), 'nav_item' => $nav_item->render(), 'conpherence_phid' => $conpherence->getPHID(), 'header' => $header, diff --git a/webroot/rsrc/js/application/conpherence/behavior-menu.js b/webroot/rsrc/js/application/conpherence/behavior-menu.js index c528e0cf23..65080d7e12 100644 --- a/webroot/rsrc/js/application/conpherence/behavior-menu.js +++ b/webroot/rsrc/js/application/conpherence/behavior-menu.js @@ -126,10 +126,6 @@ JX.behavior('conpherence-menu', function(config) { JX.$(r.conpherence_phid + '-nav-item'), JX.$H(r.nav_item) ); - JX.DOM.replace( - JX.$(r.conpherence_phid + '-menu-item'), - JX.$H(r.menu_item) - ); }) .start(); }); diff --git a/webroot/rsrc/js/application/conpherence/behavior-pontificate.js b/webroot/rsrc/js/application/conpherence/behavior-pontificate.js index 9425a23f41..887dc94a32 100644 --- a/webroot/rsrc/js/application/conpherence/behavior-pontificate.js +++ b/webroot/rsrc/js/application/conpherence/behavior-pontificate.js @@ -25,10 +25,6 @@ JX.behavior('conpherence-pontificate', function(config) { JX.$(r.conpherence_phid + '-nav-item'), JX.$H(r.nav_item) ); - JX.DOM.replace( - JX.$(r.conpherence_phid + '-menu-item'), - JX.$H(r.menu_item) - ); // update the header JX.DOM.setContent(