Skip to content

Node.js based forum software built for the modern web

Fix widget drafts position

Charles86634415da17
diff --git a/public/src/forum/admin/themes.js b/public/src/forum/admin/themes.js
index a86cc8a87c..dc797d09e1 100644
--- a/public/src/forum/admin/themes.js
+++ b/public/src/forum/admin/themes.js
@@ -161,7 +161,7 @@ define('forum/admin/themes', ['forum/admin/settings'], function(Settings) {
};
Themes.prepareWidgets = function() {
- $('[data-location="drafts"]').insertAfter($('[data-location="drafts"]').parents('.tab-content'));
+ $('[data-location="drafts"]').insertAfter($('[data-location="drafts"]').closest('.tab-content'));
$('#widgets .available-widgets .panel').draggable({
helper: function(e) {