added id for h4 holding the rfc-id

updated locales.
This commit is contained in:
Ralf Teusner
2016-06-22 13:06:35 +02:00
parent ec26a095f6
commit 918da5270d
3 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<div class="list-group">
<h4 class="list-group-item-heading" data-rfc-id = "<%= @request_for_comment.id %>" ><%= Exercise.find(@request_for_comment.exercise_id) %></h4>
<h4 id ="exercise_caption" class="list-group-item-heading" data-rfc-id = "<%= @request_for_comment.id %>" ><%= Exercise.find(@request_for_comment.exercise_id) %></h4>
<p class="list-group-item-text">
<%
user = @request_for_comment.user
@ -102,7 +102,7 @@ do not put a carriage return in the line below. it will be present in the presen
row: row,
column: 0,
text: commenttext,
request_id: $('h4').data('rfc-id')
request_id: $('h4#exercise_caption').data('rfc-id')
}
},
dataType: 'json',