Skip to content

Commit

Permalink
Update threadTools.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ozcansid000 authored Feb 28, 2025
1 parent 17040b1 commit cd6227b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion public/src/client/topic/threadTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,18 @@ define('forum/topic/threadTools', [
posts.addTopicEvents(data.events);
};


ThreadTools.setImportantState = function (data) {
const threadEl = components.get('topic');
if (parseInt(data.tid, 10) !== parseInt(threadEl.attr('data-tid'), 10)) {
return;
}
const icon = $('[component="topic/labels"] [component="topic/markImportant"]');
if (data.isMarkImportant) {
icon.removeClass('hidden');
} else {
icon.addClass('hidden');
}
};

Check failure on line 425 in public/src/client/topic/threadTools.js

View workflow job for this annotation

GitHub Actions / test

Trailing spaces not allowed

function setFollowState(state) {
Expand Down

0 comments on commit cd6227b

Please sign in to comment.