mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Fix reticle with edit inline comment
Test Plan: - Hover left comment on diff of diff. - Hover right comment on diff of diff. - Hover inline comment preview. - Hover inline comment edit. Reviewers: epriestley Reviewed By: epriestley CC: aran Maniphest Tasks: T1076 Differential Revision: https://secure.phabricator.com/D2213
This commit is contained in:
parent
c458768415
commit
3d6b8bff34
2 changed files with 22 additions and 23 deletions
|
@ -912,7 +912,7 @@ celerity_register_resource_map(array(
|
|||
),
|
||||
'javelin-behavior-differential-edit-inline-comments' =>
|
||||
array(
|
||||
'uri' => '/res/5b24f03c/rsrc/js/application/differential/behavior-edit-inline-comments.js',
|
||||
'uri' => '/res/094df789/rsrc/js/application/differential/behavior-edit-inline-comments.js',
|
||||
'type' => 'js',
|
||||
'requires' =>
|
||||
array(
|
||||
|
@ -2470,7 +2470,7 @@ celerity_register_resource_map(array(
|
|||
'uri' => '/res/pkg/e7780f43/differential.pkg.css',
|
||||
'type' => 'css',
|
||||
),
|
||||
17105732 =>
|
||||
'270dd507' =>
|
||||
array(
|
||||
'name' => 'differential.pkg.js',
|
||||
'symbols' =>
|
||||
|
@ -2493,7 +2493,7 @@ celerity_register_resource_map(array(
|
|||
15 => 'javelin-behavior-differential-dropdown-menus',
|
||||
16 => 'javelin-behavior-buoyant',
|
||||
),
|
||||
'uri' => '/res/pkg/17105732/differential.pkg.js',
|
||||
'uri' => '/res/pkg/270dd507/differential.pkg.js',
|
||||
'type' => 'js',
|
||||
),
|
||||
'4ccda8a6' =>
|
||||
|
@ -2583,7 +2583,7 @@ celerity_register_resource_map(array(
|
|||
'aphront-typeahead-control-css' => 'dba9e1de',
|
||||
'differential-changeset-view-css' => 'e7780f43',
|
||||
'differential-core-view-css' => 'e7780f43',
|
||||
'differential-inline-comment-editor' => '17105732',
|
||||
'differential-inline-comment-editor' => '270dd507',
|
||||
'differential-local-commits-view-css' => 'e7780f43',
|
||||
'differential-revision-add-comment-css' => 'e7780f43',
|
||||
'differential-revision-comment-css' => 'e7780f43',
|
||||
|
@ -2594,27 +2594,27 @@ celerity_register_resource_map(array(
|
|||
'diffusion-commit-view-css' => '4ccda8a6',
|
||||
'javelin-behavior' => '4fbae2af',
|
||||
'javelin-behavior-aphront-basic-tokenizer' => '2af849fb',
|
||||
'javelin-behavior-aphront-drag-and-drop' => '17105732',
|
||||
'javelin-behavior-aphront-drag-and-drop-textarea' => '17105732',
|
||||
'javelin-behavior-aphront-drag-and-drop' => '270dd507',
|
||||
'javelin-behavior-aphront-drag-and-drop-textarea' => '270dd507',
|
||||
'javelin-behavior-aphront-form-disable-on-submit' => '21d01ed8',
|
||||
'javelin-behavior-buoyant' => '17105732',
|
||||
'javelin-behavior-differential-accept-with-errors' => '17105732',
|
||||
'javelin-behavior-differential-add-reviewers-and-ccs' => '17105732',
|
||||
'javelin-behavior-differential-comment-jump' => '17105732',
|
||||
'javelin-behavior-differential-diff-radios' => '17105732',
|
||||
'javelin-behavior-differential-dropdown-menus' => '17105732',
|
||||
'javelin-behavior-differential-edit-inline-comments' => '17105732',
|
||||
'javelin-behavior-differential-feedback-preview' => '17105732',
|
||||
'javelin-behavior-differential-keyboard-navigation' => '17105732',
|
||||
'javelin-behavior-differential-populate' => '17105732',
|
||||
'javelin-behavior-differential-show-more' => '17105732',
|
||||
'javelin-behavior-buoyant' => '270dd507',
|
||||
'javelin-behavior-differential-accept-with-errors' => '270dd507',
|
||||
'javelin-behavior-differential-add-reviewers-and-ccs' => '270dd507',
|
||||
'javelin-behavior-differential-comment-jump' => '270dd507',
|
||||
'javelin-behavior-differential-diff-radios' => '270dd507',
|
||||
'javelin-behavior-differential-dropdown-menus' => '270dd507',
|
||||
'javelin-behavior-differential-edit-inline-comments' => '270dd507',
|
||||
'javelin-behavior-differential-feedback-preview' => '270dd507',
|
||||
'javelin-behavior-differential-keyboard-navigation' => '270dd507',
|
||||
'javelin-behavior-differential-populate' => '270dd507',
|
||||
'javelin-behavior-differential-show-more' => '270dd507',
|
||||
'javelin-behavior-maniphest-batch-selector' => '86fc0b0c',
|
||||
'javelin-behavior-maniphest-transaction-controls' => '86fc0b0c',
|
||||
'javelin-behavior-maniphest-transaction-expand' => '86fc0b0c',
|
||||
'javelin-behavior-maniphest-transaction-preview' => '86fc0b0c',
|
||||
'javelin-behavior-phabricator-autofocus' => '21d01ed8',
|
||||
'javelin-behavior-phabricator-keyboard-shortcuts' => '21d01ed8',
|
||||
'javelin-behavior-phabricator-object-selector' => '17105732',
|
||||
'javelin-behavior-phabricator-object-selector' => '270dd507',
|
||||
'javelin-behavior-phabricator-watch-anchor' => '21d01ed8',
|
||||
'javelin-behavior-refresh-csrf' => '21d01ed8',
|
||||
'javelin-behavior-workflow' => '21d01ed8',
|
||||
|
@ -2642,7 +2642,7 @@ celerity_register_resource_map(array(
|
|||
'phabricator-core-buttons-css' => 'dba9e1de',
|
||||
'phabricator-core-css' => 'dba9e1de',
|
||||
'phabricator-directory-css' => 'dba9e1de',
|
||||
'phabricator-drag-and-drop-file-upload' => '17105732',
|
||||
'phabricator-drag-and-drop-file-upload' => '270dd507',
|
||||
'phabricator-dropdown-menu' => '21d01ed8',
|
||||
'phabricator-jump-nav' => 'dba9e1de',
|
||||
'phabricator-keyboard-shortcut' => '21d01ed8',
|
||||
|
@ -2651,7 +2651,7 @@ celerity_register_resource_map(array(
|
|||
'phabricator-object-selector-css' => 'e7780f43',
|
||||
'phabricator-paste-file-upload' => '21d01ed8',
|
||||
'phabricator-remarkup-css' => 'dba9e1de',
|
||||
'phabricator-shaped-request' => '17105732',
|
||||
'phabricator-shaped-request' => '270dd507',
|
||||
'phabricator-standard-page-view' => 'dba9e1de',
|
||||
'phabricator-transaction-view-css' => 'dba9e1de',
|
||||
'syntax-highlighting-css' => 'dba9e1de',
|
||||
|
|
|
@ -167,12 +167,11 @@ JX.behavior('differential-edit-inline-comments', function(config) {
|
|||
} else {
|
||||
root = e.getNode('differential-changeset');
|
||||
|
||||
var comment = e.getNode('differential-inline-comment');
|
||||
var data = JX.Stratcom.getData(comment);
|
||||
var data = e.getNodeData('differential-inline-comment');
|
||||
var change = e.getNodeData('differential-changeset');
|
||||
|
||||
var id_part = data.on_right ? change.right : change.left;
|
||||
var th = comment.parentNode.previousSibling;
|
||||
var th = e.getNode('tag:td').previousSibling;
|
||||
var new_part = isNewFile(th) ? 'N' : 'O';
|
||||
var prefix = 'C' + id_part + new_part + 'L';
|
||||
|
||||
|
|
Loading…
Reference in a new issue