1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-11 07:11:04 +01:00
phorge-phorge/webroot/rsrc
epriestley d03a497616 Allow any inline in the document to be queried by ID
Summary:
Ref T12616. When you "Delete" a comment from the preview, we try to delete the comment on screen too.

It may or may not be present on screen: if you just added it it's usually visible. However, you might also have hidden the file it contains or it could be on an older diff in a file which is no longer present in the current diff.

After updates in T12616, we could only find the comment if you'd previously interacted with it for some reason. Update this code to be able to find all inlines present in the document.

Test Plan:
  - Write a draft comment.
  - Reload the page.
  - DO NOT INTERACT WITH THE COMMENT!
  - Delete it from the preview.
  - After patch: Comment is deleted from the document, too.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12616

Differential Revision: https://secure.phabricator.com/D17937
2017-05-17 12:26:40 -07:00
..
audio/basic Add a few more sounds 2017-04-19 13:47:23 -07:00
css Don't render an action list without actions 2017-05-17 09:10:48 -07:00
externals Move the "select a line range" inline code to DiffInline 2017-05-17 08:41:26 -07:00
favicons JX.Favicon for Conpherence 2016-10-20 12:17:50 -07:00
image Add some higher resolution default user images 2017-02-26 09:56:21 -08:00
js Allow any inline in the document to be queried by ID 2017-05-17 12:26:40 -07:00