mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
Strip confusing bookmark styling
This commit is contained in:
parent
78378c7ade
commit
4c55dc0903
1 changed files with 0 additions and 5 deletions
|
@ -198,18 +198,13 @@ Discourse.PostMenuView = Discourse.View.extend({
|
|||
|
||||
var iconClass = 'read-icon',
|
||||
buttonClass = 'bookmark',
|
||||
topic = post.get('topic'),
|
||||
tooltip;
|
||||
|
||||
if (post.get('bookmarked')) {
|
||||
iconClass += ' bookmarked';
|
||||
buttonClass += ' bookmarked';
|
||||
tooltip = I18n.t('bookmarks.created');
|
||||
} else if (topic && topic.get('last_read_post_number') === post.get('post_number')) {
|
||||
iconClass += ' last-read';
|
||||
tooltip = I18n.t('bookmarks.last_read');
|
||||
} else {
|
||||
iconClass += (post.get('read') ? ' seen' : ' unseen');
|
||||
tooltip = I18n.t('bookmarks.not_bookmarked');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue