1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

Fix reticle with inline comments editor

Test Plan: Hover textarea in inline comment editor

Reviewers: epriestley

Reviewed By: epriestley

CC: aran

Differential Revision: https://secure.phabricator.com/D2152
This commit is contained in:
vrana 2012-04-08 01:42:40 -07:00
parent 13775fde01
commit a662b09e73
2 changed files with 23 additions and 22 deletions

View file

@ -912,7 +912,7 @@ celerity_register_resource_map(array(
),
'javelin-behavior-differential-edit-inline-comments' =>
array(
'uri' => '/res/5e29ada1/rsrc/js/application/differential/behavior-edit-inline-comments.js',
'uri' => '/res/4c4329fe/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/216b9542/differential.pkg.css',
'type' => 'css',
),
'f6a0c401' =>
'fe787a90' =>
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/f6a0c401/differential.pkg.js',
'uri' => '/res/pkg/fe787a90/differential.pkg.js',
'type' => 'js',
),
'4ccda8a6' =>
@ -2583,7 +2583,7 @@ celerity_register_resource_map(array(
'aphront-typeahead-control-css' => '9ca700e9',
'differential-changeset-view-css' => '216b9542',
'differential-core-view-css' => '216b9542',
'differential-inline-comment-editor' => 'f6a0c401',
'differential-inline-comment-editor' => 'fe787a90',
'differential-local-commits-view-css' => '216b9542',
'differential-revision-add-comment-css' => '216b9542',
'differential-revision-comment-css' => '216b9542',
@ -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' => 'f6a0c401',
'javelin-behavior-aphront-drag-and-drop-textarea' => 'f6a0c401',
'javelin-behavior-aphront-drag-and-drop' => 'fe787a90',
'javelin-behavior-aphront-drag-and-drop-textarea' => 'fe787a90',
'javelin-behavior-aphront-form-disable-on-submit' => '21d01ed8',
'javelin-behavior-buoyant' => 'f6a0c401',
'javelin-behavior-differential-accept-with-errors' => 'f6a0c401',
'javelin-behavior-differential-add-reviewers-and-ccs' => 'f6a0c401',
'javelin-behavior-differential-comment-jump' => 'f6a0c401',
'javelin-behavior-differential-diff-radios' => 'f6a0c401',
'javelin-behavior-differential-dropdown-menus' => 'f6a0c401',
'javelin-behavior-differential-edit-inline-comments' => 'f6a0c401',
'javelin-behavior-differential-feedback-preview' => 'f6a0c401',
'javelin-behavior-differential-keyboard-navigation' => 'f6a0c401',
'javelin-behavior-differential-populate' => 'f6a0c401',
'javelin-behavior-differential-show-more' => 'f6a0c401',
'javelin-behavior-buoyant' => 'fe787a90',
'javelin-behavior-differential-accept-with-errors' => 'fe787a90',
'javelin-behavior-differential-add-reviewers-and-ccs' => 'fe787a90',
'javelin-behavior-differential-comment-jump' => 'fe787a90',
'javelin-behavior-differential-diff-radios' => 'fe787a90',
'javelin-behavior-differential-dropdown-menus' => 'fe787a90',
'javelin-behavior-differential-edit-inline-comments' => 'fe787a90',
'javelin-behavior-differential-feedback-preview' => 'fe787a90',
'javelin-behavior-differential-keyboard-navigation' => 'fe787a90',
'javelin-behavior-differential-populate' => 'fe787a90',
'javelin-behavior-differential-show-more' => 'fe787a90',
'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' => 'f6a0c401',
'javelin-behavior-phabricator-object-selector' => 'fe787a90',
'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' => '9ca700e9',
'phabricator-core-css' => '9ca700e9',
'phabricator-directory-css' => '9ca700e9',
'phabricator-drag-and-drop-file-upload' => 'f6a0c401',
'phabricator-drag-and-drop-file-upload' => 'fe787a90',
'phabricator-dropdown-menu' => '21d01ed8',
'phabricator-jump-nav' => '9ca700e9',
'phabricator-keyboard-shortcut' => '21d01ed8',
@ -2651,7 +2651,7 @@ celerity_register_resource_map(array(
'phabricator-object-selector-css' => '216b9542',
'phabricator-paste-file-upload' => '21d01ed8',
'phabricator-remarkup-css' => '9ca700e9',
'phabricator-shaped-request' => 'f6a0c401',
'phabricator-shaped-request' => 'fe787a90',
'phabricator-standard-page-view' => '9ca700e9',
'phabricator-transaction-view-css' => '9ca700e9',
'syntax-highlighting-css' => '9ca700e9',

View file

@ -167,11 +167,12 @@ JX.behavior('differential-edit-inline-comments', function(config) {
} else {
root = e.getNode('differential-changeset');
var data = e.getNodeData('differential-inline-comment');
var comment = e.getNode('differential-inline-comment');
var data = JX.Stratcom.getData(comment);
var change = e.getNodeData('differential-changeset');
var id_part = data.on_right ? change.right : change.left;
var new_part = isNewFile(e.getTarget()) ? 'N' : 'O';
var new_part = isNewFile(comment) ? 'N' : 'O';
var prefix = 'C' + id_part + new_part + 'L';
origin = JX.$(prefix + data.number);