Browse Source

More clear id for comments header

shortcutme 5 months ago
parent
commit
6ee61119b5
2 changed files with 2 additions and 2 deletions
  1. 1 1
      index.html
  2. 1 1
      js/Comments.coffee

+ 1 - 1
index.html

@@ -114,7 +114,7 @@
 
   <div class="body" data-editable="body" data-editable-mode="meditor"></div>
 
-  <h2 id="Comments_id">0 Comments:</h2>
+  <h2 id="Comments_header">0 Comments:</h2>
   <!-- New comment -->
   <div class="comment comment-new">
    <div class="info">

+ 1 - 1
js/Comments.coffee

@@ -26,7 +26,7 @@ class Comments extends Class
 			WHERE post_id = #{@post_id} ORDER BY date_added DESC"
 
 		Page.cmd "dbQuery", query, (comments) =>
-			$("#Comments_id").text(comments.length + if comments.length > 1 then " Comments:" else " Comment:")
+			$("#Comments_header").text(comments.length + if comments.length > 1 then " Comments:" else " Comment:")
 			for comment in comments
 				user_address = comment.directory.replace("users/", "")
 				comment_address = "#{comment.comment_id}_#{user_address}"