<div class = "user_icon" id = "comment_user_<%= i %>"><%= fa_icon("user") %></div>
<script>
$(function () {
// <!-- リプ一覧欄開閉 -->
$('#reply_lists_id_<%= i %>').hide();
<% if comment.replies.present? %>
$('#comment_user_<%= i %>').click(function () {
$('#reply_lists_id_<%= i %>').toggle();
// <!-- リプフォーム閉 -->
$('#reply_form_id_<%= i %>').hide();
<% else %>
$('#comment_user_<%= i %>').click(function () {
window.alert('リプライがありません。');
<% end %>
});
});
</script>
More than 3 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
00