Skip to content

Commit

Permalink
Merge pull request openedx#857 from MITx/hotfix/arjun/fix_integer_dis…
Browse files Browse the repository at this point in the history
…c_ids

Fix some issues with integer ids in the discussion forum
  • Loading branch information
arjun810 committed Oct 11, 2012
2 parents 66d9a9c + bb6a43e commit 51d0d74
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lms/templates/discussion/_underscore_templates.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<script type="text/template" id="thread-template">
<article class="discussion-article" data-id="${'<%- id %>'}">
<article class="discussion-article" data-id="${'<%- id.toString() %>'}">
<div class="thread-content-wrapper"></div>
<ol class="responses">
<li class="loading"><div class="loading-animation"></div></li>
</ol>
<div class="post-status-closed bottom-post-status" style="display: none">
This thread is closed.
</div>
<form class="discussion-reply-new" data-id="${'<%- id %>'}">
<form class="discussion-reply-new" data-id="${'<%- id.toString() %>'}">
<h4>Post a response:</h4>
<ul class="discussion-errors"></ul>
<div class="reply-body" data-id="${'<%- id %>'}"></div>
<div class="reply-body" data-id="${'<%- id.toString() %>'}"></div>
<div class="reply-post-control">
<a class="discussion-submit-post control-button" href="#">Submit</a>
</div>
Expand Down Expand Up @@ -117,7 +117,7 @@ <h1>Editing response</h1>
</script>

<script type="text/template" id="response-comment-show-template">
<div id="comment_${'<%- id %>'}">
<div id="comment_${'<%- id.toString() %>'}">
<div class="response-body">${'<%- body %>'}</div>
<p class="posted-details">&ndash;posted <span class="timeago" title="${'<%- created_at %>'}">${'<%- created_at %>'}</span> by
${"<% if (obj.username) { %>"}
Expand All @@ -128,7 +128,7 @@ <h1>Editing response</h1>
</script>

<script type="text/template" id="thread-list-item-template">
<a href="${'<%- id %>'}" data-id="${'<%- id %>'}">
<a href="${'<%- id.toString() %>'}" data-id="${'<%- id.toString() %>'}">
<span class="title">${"<%- title %>"}</span>
${"<% if (unread_comments_count > 0) { %>"}
<span class="comments-count unread" data-tooltip="${"<%- unread_comments_count %>"} new comment${"<%- unread_comments_count > 1 ? 's' : '' %>"}">${"<%- comments_count %>"}</span>
Expand Down

0 comments on commit 51d0d74

Please sign in to comment.