Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
5e48aece
Commit
5e48aece
authored
Feb 03, 2014
by
Greg Price
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2392 from edx/gprice/fix-unread-tooltip
Fix unread comment count tooltip rendering
parents
cac57a51
285d3579
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
common/static/coffee/src/discussion/views/discussion_thread_list_view.coffee
+5
-3
No files found.
common/static/coffee/src/discussion/views/discussion_thread_list_view.coffee
View file @
5e48aece
...
...
@@ -174,12 +174,14 @@ if Backbone?
content
.
addClass
(
"resolved"
)
if
thread
.
get
(
'read'
)
content
.
addClass
(
"read"
)
if
thread
.
get
(
'unread_comments_count'
)
>
0
unreadCount
=
thread
.
get
(
'unread_comments_count'
)
if
unreadCount
>
0
content
.
find
(
'.comments-count'
).
addClass
(
"unread"
).
attr
(
"data-tooltip"
,
interpolate
(
ngettext
(
'%(unread_count)s new comment'
,
'%(unread_count)s new comments'
,
{
'unread_count'
:
thread
.
get
(
'unread_comments_count'
)}),
[
thread
.
get
(
'unread_comments_count'
)]
ngettext
(
'%(unread_count)s new comment'
,
'%(unread_count)s new comments'
,
unreadCount
),
{
unread_count
:
thread
.
get
(
'unread_comments_count'
)},
true
)
)
@
highlight
(
content
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment