1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-25 23:10:57 +01:00
phorge-phorge/webroot/rsrc/js/application/differential
Alan Huang dbde4b9ff2 Fix issues with Differential file toggling
Summary:
See D2714#15.

 # Give anchors an `id` equal to their `name` so JX.$ can find them.
 # Listen for `click` s on `<a>` s instead of `hashchange` s to make
   toggling a bit more correct and consistent.
 # Add a placeholder menu item when the file is unloaded. A previous
   patch by @jungejason had left the item blank in that case.
 # In fixing (1) I found another exception when clicking on ToC links.
   Since those links are `differential-load`, they try to load the file
   before jumping to it. However, loading destroys the node it's looking
   for, so if you jump to an already-loaded file JX.$ complains at you.

Test Plan: Make a giant diff. Click on links and try toggling files.

Reviewers: epriestley, vrana

Reviewed By: vrana

CC: vrana, aran, Korvin

Maniphest Tasks: T370

Differential Revision: https://secure.phabricator.com/D3185
2012-08-09 17:53:05 -07:00
..
behavior-accept-with-errors.js Create option for differential custom fields to display warning on accept 2012-05-02 14:30:21 -07:00
behavior-add-reviewers-and-ccs.js Use Javelin placeholders and new sorting rules broadly; consolidate tokenizer construction code 2012-03-09 15:46:39 -08:00
behavior-comment-jump.js Let the viewer collapse/expand individual files in a diff. 2012-06-13 16:52:42 -07:00
behavior-comment-preview.js Improve inline comment previews 2012-03-28 10:11:41 -07:00
behavior-diff-radios.js Bring Javelin into Phabricator via git submodule, not copy-and-paste 2011-05-08 13:20:10 -07:00
behavior-dropdown-menus.js Fix issues with Differential file toggling 2012-08-09 17:53:05 -07:00
behavior-edit-inline-comments.js Add a Delete link to Differential inline comment previews 2012-08-02 12:24:23 -07:00
behavior-keyboard-nav.js Let the viewer collapse/expand individual files in a diff. 2012-06-13 16:52:42 -07:00
behavior-populate.js Improve displaying of very large commits 2012-08-07 10:51:38 -07:00
behavior-show-all-comments.js Go to correct position after revealing comments 2012-02-26 13:13:51 -08:00
behavior-show-field-details.js Further improve unit/lint rendering 2012-05-01 10:15:56 -07:00
behavior-show-more.js Show a tooltip about code coverage 2012-03-12 20:04:12 -07:00
behavior-toggle-files.js Fix issues with Differential file toggling 2012-08-09 17:53:05 -07:00
behavior-user-select.js Hide selection to provide a visual cue about clipboard JS magic in Differential 2012-04-24 18:53:48 -07:00
DifferentialInlineCommentEditor.js Add a Delete link to Differential inline comment previews 2012-08-02 12:24:23 -07:00