mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
fix: match api when modifying ajaxify.data.deleted (int, not bool)
This commit is contained in:
@@ -229,7 +229,7 @@ define('forum/topic/threadTools', [
|
|||||||
threadEl.find('[component="post"]:not(.deleted) [component="post/reply"], [component="post"]:not(.deleted) [component="post/quote"]').toggleClass('hidden', hideReply);
|
threadEl.find('[component="post"]:not(.deleted) [component="post/reply"], [component="post"]:not(.deleted) [component="post/quote"]').toggleClass('hidden', hideReply);
|
||||||
|
|
||||||
threadEl.toggleClass('deleted', data.isDelete);
|
threadEl.toggleClass('deleted', data.isDelete);
|
||||||
ajaxify.data.deleted = data.isDelete;
|
ajaxify.data.deleted = data.isDelete ? 1 : 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user