fixes #71: Comment spoiler function not working

This commit is contained in:
albert
2011-09-15 18:12:48 -04:00
parent 66684f054e
commit 571110e9eb
2 changed files with 16 additions and 1 deletions

View File

@@ -137,6 +137,21 @@ h3 {
font-size: $h3_size;
}
.spoiler {
color: black;
background: black;
cursor: text;
display: block;
}
.spoiler a {
color: black;
}
.spoiler:hover {
color: white;
}
div.prose {
h1, h2, h3 {
line-height: 1em;

View File

@@ -24,7 +24,7 @@ class Post < ActiveRecord::Base
has_many :versions, :class_name => "PostVersion", :dependent => :destroy, :order => "post_versions.id ASC"
has_many :votes, :class_name => "PostVote", :dependent => :destroy
has_many :notes, :dependent => :destroy
has_many :comments
has_many :comments, :order => "comments.id"
has_many :children, :class_name => "Post", :foreign_key => "parent_id", :order => "posts.id"
has_many :disapprovals, :class_name => "PostDisapproval"
validates_uniqueness_of :md5