mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-05 12:01:17 +01:00
Fix for user being able to open multiple "delete posts" modals (#6770)
* Implement fix for multiple fork cards showing * Fix for admin being able to open multiple 'delete posts' modals * Fix linting issue
This commit is contained in:
committed by
Barış Soner Uşaklı
parent
bfadd3ea58
commit
f120015b54
@@ -18,6 +18,10 @@ define('forum/topic/delete-posts', ['components', 'postSelect'], function (compo
|
||||
}
|
||||
|
||||
function onDeletePostsClicked() {
|
||||
if (modal) {
|
||||
return;
|
||||
}
|
||||
|
||||
app.parseAndTranslate('partials/delete_posts_modal', {}, function (html) {
|
||||
modal = html;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user