Page MenuHomePhorge

D25067.1734733117.diff
No OneTemporary

D25067.1734733117.diff

diff --git a/src/applications/dashboard/paneltype/PhabricatorDashboardTabsPanelType.php b/src/applications/dashboard/paneltype/PhabricatorDashboardTabsPanelType.php
--- a/src/applications/dashboard/paneltype/PhabricatorDashboardTabsPanelType.php
+++ b/src/applications/dashboard/paneltype/PhabricatorDashboardTabsPanelType.php
@@ -111,9 +111,11 @@
$name = pht('Unnamed Tab');
}
+ $is_selected = (string)$idx === (string)$selected;
+
$tab_view = id(new PHUIListItemView())
->setHref('#')
- ->setSelected((string)$idx === (string)$selected)
+ ->setSelected($is_selected)
->addSigil('dashboard-tab-panel-tab')
->setMetadata(array('panelKey' => $idx))
->setName($name);
@@ -286,7 +288,7 @@
'div',
array(
'id' => $content_id,
- 'style' => ($idx == $selected) ? null : 'display: none',
+ 'style' => $is_selected ? null : 'display: none',
),
$panel_content);

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 22:18 (15 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1016565
Default Alt Text
D25067.1734733117.diff (1000 B)

Event Timeline