|
|
@ -254,8 +254,7 @@ define('forum/category/tools', [
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function handlePinnedTopicSort() {
|
|
|
|
function handlePinnedTopicSort() {
|
|
|
|
var env = utils.findBootstrapEnvironment();
|
|
|
|
if (!ajaxify.data.privileges.isAdminOrMod) {
|
|
|
|
if (!ajaxify.data.privileges.isAdminOrMod || env === 'xs' || env === 'sm') {
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
app.loadJQueryUI(function () {
|
|
|
|
app.loadJQueryUI(function () {
|
|
|
@ -263,6 +262,7 @@ define('forum/category/tools', [
|
|
|
|
return !$(e).parents('[widget-area]').length;
|
|
|
|
return !$(e).parents('[widget-area]').length;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
topicListEl.sortable({
|
|
|
|
topicListEl.sortable({
|
|
|
|
|
|
|
|
handle: '[component="topic/pinned"]',
|
|
|
|
items: '[component="category/topic"].pinned',
|
|
|
|
items: '[component="category/topic"].pinned',
|
|
|
|
update: function () {
|
|
|
|
update: function () {
|
|
|
|
var data = [];
|
|
|
|
var data = [];
|
|
|
|