Enable 'jumping to toc' on diffusion commit page
Summary: Diffusion page is sharing the keyboard shortcuts code with Differential page. But since the toc (Changes) panel doesn't have id 'differential-review-toc', the 'jumping to toc' doesn't work. The fix is to add the ID. I don't like adding 'Differential' to the Diffusion page. Later we should refactor the code to extract the shared components out of Differential. Test Plan: verified that 't' worked on the diffusion commit page. Reviewers: epriestley, nh Reviewed By: epriestley CC: hwang, aran, Korvin Differential Revision: https://secure.phabricator.com/D2500
This commit is contained in:
@@ -162,6 +162,7 @@ final class DiffusionCommitController extends DiffusionController {
|
|||||||
} else {
|
} else {
|
||||||
$change_panel = new AphrontPanelView();
|
$change_panel = new AphrontPanelView();
|
||||||
$change_panel->setHeader("Changes (".number_format($count).")");
|
$change_panel->setHeader("Changes (".number_format($count).")");
|
||||||
|
$change_panel->setID('differential-review-toc');
|
||||||
|
|
||||||
if ($count !== $original_changes_count) {
|
if ($count !== $original_changes_count) {
|
||||||
$show_all_button = phutil_render_tag(
|
$show_all_button = phutil_render_tag(
|
||||||
|
|||||||
Reference in New Issue
Block a user