Skip to content

Commit 62a172a

Browse files
author
vrana
committedApr 10, 2012
Fix reticle
Summary: Now I understand that [[ https://secure.phabricator.com/diffusion/P/browse/master/webroot/rsrc/js/application/differential/behavior-edit-inline-comments.js;32f12d1f8fb7aeca$174-176 | behavior-edit-inline-comments.js:174-176 ]] and [[ https://secure.phabricator.com/diffusion/P/browse/master/src/applications/differential/controller/changesetview/DifferentialChangesetViewController.php;32f12d1f8fb7aeca$72-99 | DifferentialChangesetViewController.php:72-99 ]] need to stay in sync: - 1 - isOnRight equals isNewFile - 1/-1 - left is new, right is missing - 1/2 - both are new Test Plan: Hover inline comment. Reviewers: epriestley Reviewed By: epriestley CC: aran Maniphest Tasks: T1076 Differential Revision: https://secure.phabricator.com/D2179
1 parent 32f12d1 commit 62a172a

File tree

2 files changed

+22
-21
lines changed

2 files changed

+22
-21
lines changed
 

‎src/__celerity_resource_map__.php

+20-20
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@
912912
),
913913
'javelin-behavior-differential-edit-inline-comments' =>
914914
array(
915-
'uri' => '/res/4c4329fe/rsrc/js/application/differential/behavior-edit-inline-comments.js',
915+
'uri' => '/res/5b24f03c/rsrc/js/application/differential/behavior-edit-inline-comments.js',
916916
'type' => 'js',
917917
'requires' =>
918918
array(
@@ -2470,7 +2470,7 @@
24702470
'uri' => '/res/pkg/216b9542/differential.pkg.css',
24712471
'type' => 'css',
24722472
),
2473-
'fe787a90' =>
2473+
17105732 =>
24742474
array(
24752475
'name' => 'differential.pkg.js',
24762476
'symbols' =>
@@ -2493,7 +2493,7 @@
24932493
15 => 'javelin-behavior-differential-dropdown-menus',
24942494
16 => 'javelin-behavior-buoyant',
24952495
),
2496-
'uri' => '/res/pkg/fe787a90/differential.pkg.js',
2496+
'uri' => '/res/pkg/17105732/differential.pkg.js',
24972497
'type' => 'js',
24982498
),
24992499
'4ccda8a6' =>
@@ -2583,7 +2583,7 @@
25832583
'aphront-typeahead-control-css' => '9ca700e9',
25842584
'differential-changeset-view-css' => '216b9542',
25852585
'differential-core-view-css' => '216b9542',
2586-
'differential-inline-comment-editor' => 'fe787a90',
2586+
'differential-inline-comment-editor' => '17105732',
25872587
'differential-local-commits-view-css' => '216b9542',
25882588
'differential-revision-add-comment-css' => '216b9542',
25892589
'differential-revision-comment-css' => '216b9542',
@@ -2594,27 +2594,27 @@
25942594
'diffusion-commit-view-css' => '4ccda8a6',
25952595
'javelin-behavior' => '4fbae2af',
25962596
'javelin-behavior-aphront-basic-tokenizer' => '2af849fb',
2597-
'javelin-behavior-aphront-drag-and-drop' => 'fe787a90',
2598-
'javelin-behavior-aphront-drag-and-drop-textarea' => 'fe787a90',
2597+
'javelin-behavior-aphront-drag-and-drop' => '17105732',
2598+
'javelin-behavior-aphront-drag-and-drop-textarea' => '17105732',
25992599
'javelin-behavior-aphront-form-disable-on-submit' => '21d01ed8',
2600-
'javelin-behavior-buoyant' => 'fe787a90',
2601-
'javelin-behavior-differential-accept-with-errors' => 'fe787a90',
2602-
'javelin-behavior-differential-add-reviewers-and-ccs' => 'fe787a90',
2603-
'javelin-behavior-differential-comment-jump' => 'fe787a90',
2604-
'javelin-behavior-differential-diff-radios' => 'fe787a90',
2605-
'javelin-behavior-differential-dropdown-menus' => 'fe787a90',
2606-
'javelin-behavior-differential-edit-inline-comments' => 'fe787a90',
2607-
'javelin-behavior-differential-feedback-preview' => 'fe787a90',
2608-
'javelin-behavior-differential-keyboard-navigation' => 'fe787a90',
2609-
'javelin-behavior-differential-populate' => 'fe787a90',
2610-
'javelin-behavior-differential-show-more' => 'fe787a90',
2600+
'javelin-behavior-buoyant' => '17105732',
2601+
'javelin-behavior-differential-accept-with-errors' => '17105732',
2602+
'javelin-behavior-differential-add-reviewers-and-ccs' => '17105732',
2603+
'javelin-behavior-differential-comment-jump' => '17105732',
2604+
'javelin-behavior-differential-diff-radios' => '17105732',
2605+
'javelin-behavior-differential-dropdown-menus' => '17105732',
2606+
'javelin-behavior-differential-edit-inline-comments' => '17105732',
2607+
'javelin-behavior-differential-feedback-preview' => '17105732',
2608+
'javelin-behavior-differential-keyboard-navigation' => '17105732',
2609+
'javelin-behavior-differential-populate' => '17105732',
2610+
'javelin-behavior-differential-show-more' => '17105732',
26112611
'javelin-behavior-maniphest-batch-selector' => '86fc0b0c',
26122612
'javelin-behavior-maniphest-transaction-controls' => '86fc0b0c',
26132613
'javelin-behavior-maniphest-transaction-expand' => '86fc0b0c',
26142614
'javelin-behavior-maniphest-transaction-preview' => '86fc0b0c',
26152615
'javelin-behavior-phabricator-autofocus' => '21d01ed8',
26162616
'javelin-behavior-phabricator-keyboard-shortcuts' => '21d01ed8',
2617-
'javelin-behavior-phabricator-object-selector' => 'fe787a90',
2617+
'javelin-behavior-phabricator-object-selector' => '17105732',
26182618
'javelin-behavior-phabricator-watch-anchor' => '21d01ed8',
26192619
'javelin-behavior-refresh-csrf' => '21d01ed8',
26202620
'javelin-behavior-workflow' => '21d01ed8',
@@ -2642,7 +2642,7 @@
26422642
'phabricator-core-buttons-css' => '9ca700e9',
26432643
'phabricator-core-css' => '9ca700e9',
26442644
'phabricator-directory-css' => '9ca700e9',
2645-
'phabricator-drag-and-drop-file-upload' => 'fe787a90',
2645+
'phabricator-drag-and-drop-file-upload' => '17105732',
26462646
'phabricator-dropdown-menu' => '21d01ed8',
26472647
'phabricator-jump-nav' => '9ca700e9',
26482648
'phabricator-keyboard-shortcut' => '21d01ed8',
@@ -2651,7 +2651,7 @@
26512651
'phabricator-object-selector-css' => '216b9542',
26522652
'phabricator-paste-file-upload' => '21d01ed8',
26532653
'phabricator-remarkup-css' => '9ca700e9',
2654-
'phabricator-shaped-request' => 'fe787a90',
2654+
'phabricator-shaped-request' => '17105732',
26552655
'phabricator-standard-page-view' => '9ca700e9',
26562656
'phabricator-transaction-view-css' => '9ca700e9',
26572657
'syntax-highlighting-css' => '9ca700e9',

‎webroot/rsrc/js/application/differential/behavior-edit-inline-comments.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ JX.behavior('differential-edit-inline-comments', function(config) {
172172
var change = e.getNodeData('differential-changeset');
173173

174174
var id_part = data.on_right ? change.right : change.left;
175-
var new_part = isNewFile(comment) ? 'N' : 'O';
175+
var th = comment.parentNode.previousSibling;
176+
var new_part = isNewFile(th) ? 'N' : 'O';
176177
var prefix = 'C' + id_part + new_part + 'L';
177178

178179
origin = JX.$(prefix + data.number);

0 commit comments

Comments
 (0)
Failed to load comments.