Skip to content

Node.js based forum software built for the modern web

fix: restrict drag drop to pin icon, closes #7702

Barış Soner Uşaklıe1c05e59c918
diff --git a/public/src/client/category/tools.js b/public/src/client/category/tools.js
index ae0358d966..cdef7ea6d0 100644
--- a/public/src/client/category/tools.js
+++ b/public/src/client/category/tools.js
@@ -254,8 +254,7 @@ define('forum/category/tools', [
}
function handlePinnedTopicSort() {
- var env = utils.findBootstrapEnvironment();
- if (!ajaxify.data.privileges.isAdminOrMod || env === 'xs' || env === 'sm') {
+ if (!ajaxify.data.privileges.isAdminOrMod) {
return;
}
app.loadJQueryUI(function () {
@@ -263,6 +262,7 @@ define('forum/category/tools', [
return !$(e).parents('[widget-area]').length;
});
topicListEl.sortable({
+ handle: '[component="topic/pinned"]',
items: '[component="category/topic"].pinned',
update: function () {
var data = [];