Skip to content

Commit

Permalink
fix: dont use hardcoded fontawesome icons for lock pin
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Sep 9, 2020
1 parent f6d5646 commit 632793b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/src/client/topic/threadTools.js
Expand Up @@ -198,7 +198,7 @@ define('forum/topic/threadTools', [

threadEl.find('[component="post"][data-uid="' + app.user.uid + '"].deleted [component="post/tools"]').toggleClass('hidden', isLocked);

$('[component="post/header"] i.fa-lock').toggleClass('hidden', !data.isLocked);
$('[component="post/header"] [component="topic/locked"]').toggleClass('hidden', !data.isLocked);
$('[component="post/tools"] .dropdown-menu').html('');
ajaxify.data.locked = data.isLocked;
};
Expand Down Expand Up @@ -243,7 +243,7 @@ define('forum/topic/threadTools', [

components.get('topic/pin').toggleClass('hidden', data.isPinned).parent().attr('hidden', data.isPinned ? '' : null);
components.get('topic/unpin').toggleClass('hidden', !data.isPinned).parent().attr('hidden', !data.isPinned ? '' : null);
$('[component="post/header"] i.fa-thumb-tack').toggleClass('hidden', !data.isPinned);
$('[component="post/header"] [component="topic/pinned"]').toggleClass('hidden', !data.isPinned);
ajaxify.data.pinned = data.isPinned;
};

Expand Down

0 comments on commit 632793b

Please sign in to comment.