1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 15:22:41 +01:00
phorge-phorge/webroot/rsrc/js/application/differential
epriestley de7aa2186c Resolve great internal confusion about left vs right inline comments
Summary:
This code was just all kinds of wrong, but got all the common cases anyone cares
about correct.

  - In edit-inline-comments.js, if isOnRight() is true, use data.right, not
data.left (derp).
  - Set data.left correctly, not to the same value as data.right (derp derp).
  - Set "isNewFile" based on $is_new, not $on_right (derp derp derp).

Test Plan:
 - Added JS debugging code to print "OLD" vs "NEW" and "LEFT" vs "RIGHT".
Clicked the left and right sides of diff-vs-base and diff-vs-diff diffs,
verified output was accurate in all cases.
 - Added comments to the left-display-side of a diff-of-diffs, saved them, they
showed up where I put them.

Reviewers: btrahan, vrana

Reviewed By: btrahan

CC: aran, epriestley

Maniphest Tasks: T543

Differential Revision: https://secure.phabricator.com/D1567
2012-02-03 15:26:47 -08:00
..
behavior-accept-with-errors.js Added a big warning if reviewer is about to accept a diff with lint or unit 2011-06-13 11:49:31 -07:00
behavior-add-reviewers-and-ccs.js Include added reviewers and ccs in preview 2012-01-04 17:08:13 -08:00
behavior-comment-jump.js Added 'Next' and 'Previous' links to differential 2011-05-11 14:46:00 -07:00
behavior-comment-preview.js Include added reviewers and ccs in preview 2012-01-04 17:08:13 -08: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 Display links to editor in Differential and Diffusion 2012-01-24 10:42:33 -08:00
behavior-edit-inline-comments.js Resolve great internal confusion about left vs right inline comments 2012-02-03 15:26:47 -08:00
behavior-keyboard-nav.js Add more keyboard navigation options for inline comments 2012-01-05 12:58:05 -08:00
behavior-populate.js Use Workflow, not Request, for Differential populate/show more requests 2011-07-16 19:15:54 -07:00
behavior-show-all-comments.js Add comment linking to Maniphest and Differential 2011-05-31 11:11:19 -07:00
behavior-show-more.js Add "Reveal Entire File" option to Diffusion 2012-01-06 11:51:10 -08:00
DifferentialInlineCommentEditor.js Remove tests for JX.$.NotFound from Phabricator 2011-09-16 00:49:10 -07:00