mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: handle expanding quotes from deleted posts by rendering a trash icon
This commit is contained in:
@@ -136,6 +136,10 @@ export default class PostCooked {
|
||||
div.html(result.cooked);
|
||||
div.highlight(originalText, {caseSensitive: true, element: 'span', className: 'highlighted'});
|
||||
$blockQuote.showHtml(div, 'fast', finished);
|
||||
}).catch((e) => {
|
||||
if (e.jqXHR.status === 404) {
|
||||
$blockQuote.showHtml($("<div class='expanded-quote'><i class='fa fa-trash-o'></i></div>"), 'fast', finished);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
// Hide expanded quote
|
||||
|
||||
Reference in New Issue
Block a user