mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +01:00
fix: closes #11539
This commit is contained in:
@@ -11,7 +11,13 @@ define('forum/topic/diffs', ['api', 'bootbox', 'alerts', 'forum/topic/images'],
|
|||||||
|
|
||||||
api.get(`/posts/${pid}/diffs`, {}).then((data) => {
|
api.get(`/posts/${pid}/diffs`, {}).then((data) => {
|
||||||
parsePostHistory(data).then(($html) => {
|
parsePostHistory(data).then(($html) => {
|
||||||
const $modal = bootbox.dialog({ title: '[[topic:diffs.title]]', message: $html, size: 'large' });
|
const $modal = bootbox.dialog({
|
||||||
|
title: '[[topic:diffs.title]]',
|
||||||
|
message: $html,
|
||||||
|
size: 'large',
|
||||||
|
onEscape: true,
|
||||||
|
backdrop: true,
|
||||||
|
});
|
||||||
|
|
||||||
if (!data.timestamps.length) {
|
if (!data.timestamps.length) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user