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
628ec509
Commit
628ec509
authored
Jun 29, 2016
by
Brian Jacobel
Committed by
GitHub
Jun 29, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12859 from edx/bjacobel/TNL-4392
Fix TNL-4392
parents
e19fb06e
24b22a8e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
common/static/common/js/spec/discussion/view/thread_response_show_view_spec.js
+7
-1
common/static/common/templates/discussion/thread-response-show.underscore
+1
-1
No files found.
common/static/common/js/spec/discussion/view/thread_response_show_view_spec.js
View file @
628ec509
...
...
@@ -16,6 +16,7 @@
body
:
"this is a comment"
,
created_at
:
"2013-04-03T20:08:39Z"
,
endorsed
:
false
,
endorsement
:
{},
abuse_flaggers
:
[],
votes
:
{
up_count
:
42
...
...
@@ -132,7 +133,12 @@
this
.
view
.
$
(
".action-answer"
).
click
();
expect
(
this
.
view
.
$
(
".posted-details"
).
text
()).
toMatch
(
"marked as answer"
);
this
.
view
.
$
(
".action-answer"
).
click
();
return
expect
(
this
.
view
.
$
(
".posted-details"
).
text
()).
not
.
toMatch
(
"marked as answer"
);
expect
(
this
.
view
.
$
(
".posted-details"
).
text
()).
not
.
toMatch
(
"marked as answer"
);
// Previously the endorsement state would revert after a page load due to a bug in the template
this
.
view
.
render
();
expect
(
this
.
view
.
$
(
".posted-details"
).
text
()).
not
.
toMatch
(
"marked as answer"
);
});
it
(
"allows a moderator to mark an answer in a question thread"
,
function
()
{
var
endorseButton
;
...
...
common/static/common/templates/discussion/thread-response-show.underscore
View file @
628ec509
...
...
@@ -3,7 +3,7 @@
<%= author_display %>
<p class="posted-details">
<span class="timeago" title="<%= created_at %>"><%= created_at %></span>
<% if (obj.endorsement) { %>
<% if (obj.endorsement
&& obj.endorsed
) { %>
-
<%
var fmt = null;
...
...
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