Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15399113
D18262.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D18262.diff
View Options
diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -13,7 +13,7 @@
'core.pkg.js' => '5d80e0db',
'darkconsole.pkg.js' => '1f9a31bc',
'differential.pkg.css' => '45951e9e',
- 'differential.pkg.js' => '1d80ecc6',
+ 'differential.pkg.js' => '414ada25',
'diffusion.pkg.css' => 'a2d17c7d',
'diffusion.pkg.js' => '6134c5a1',
'favicon.ico' => '30672e08',
@@ -399,7 +399,7 @@
'rsrc/js/application/dashboard/behavior-dashboard-tab-panel.js' => 'd4eecc63',
'rsrc/js/application/diff/DiffChangeset.js' => '99abf4cd',
'rsrc/js/application/diff/DiffChangesetList.js' => 'cb1570cb',
- 'rsrc/js/application/diff/DiffInline.js' => '1bfa31c7',
+ 'rsrc/js/application/diff/DiffInline.js' => 'e83d28f3',
'rsrc/js/application/diff/behavior-preview-link.js' => '051c7832',
'rsrc/js/application/differential/behavior-comment-preview.js' => '51c5ad07',
'rsrc/js/application/differential/behavior-diff-radios.js' => 'e1ff79b1',
@@ -779,7 +779,7 @@
'phabricator-dashboard-css' => 'fe5b1869',
'phabricator-diff-changeset' => '99abf4cd',
'phabricator-diff-changeset-list' => 'cb1570cb',
- 'phabricator-diff-inline' => '1bfa31c7',
+ 'phabricator-diff-inline' => 'e83d28f3',
'phabricator-drag-and-drop-file-upload' => '58dea2fa',
'phabricator-draggable-list' => 'bea6e7f4',
'phabricator-fatal-config-template-css' => '8f18fa41',
@@ -1020,9 +1020,6 @@
'javelin-request',
'javelin-uri',
),
- '1bfa31c7' => array(
- 'javelin-dom',
- ),
'1e911d0f' => array(
'javelin-stratcom',
'javelin-request',
@@ -2094,6 +2091,9 @@
'javelin-workflow',
'javelin-magical-init',
),
+ 'e83d28f3' => array(
+ 'javelin-dom',
+ ),
'e9581f08' => array(
'javelin-behavior',
'javelin-stratcom',
diff --git a/webroot/rsrc/js/application/diff/DiffInline.js b/webroot/rsrc/js/application/diff/DiffInline.js
--- a/webroot/rsrc/js/application/diff/DiffInline.js
+++ b/webroot/rsrc/js/application/diff/DiffInline.js
@@ -702,7 +702,14 @@
JX.DOM.remove(this._row);
}
- this.bindToRow(new_row);
+ // If you delete the content on a comment and save it, it acts like a
+ // delete: the server does not return a new row.
+ if (new_row) {
+ this.bindToRow(new_row);
+ } else {
+ this.setDeleted(true);
+ this._row = null;
+ }
this._didUpdate();
},
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mar 18 2025, 2:56 AM (4 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7599062
Default Alt Text
D18262.diff (2 KB)
Attached To
Mode
D18262: Fix an issue when deleting the entire content of an unsubmitted inline comment
Attached
Detach File
Event Timeline
Log In to Comment