Fixminor bug with displaying parent border
This commit is contained in:
@@ -451,7 +451,7 @@
|
||||
if (data.parent_id) {
|
||||
$post.addClass("post-status-has-parent");
|
||||
}
|
||||
if (data.has_children) {
|
||||
if (data.has_visible_children) {
|
||||
$post.addClass("post-status-has-children");
|
||||
}
|
||||
Danbooru.Post.initialize_title_for($post);
|
||||
|
||||
@@ -1042,6 +1042,10 @@ class Post < ActiveRecord::Base
|
||||
return true if has_children? && is_deleted?
|
||||
return false
|
||||
end
|
||||
|
||||
def has_visible_children
|
||||
has_visible_children?
|
||||
end
|
||||
end
|
||||
|
||||
module DeletionMethods
|
||||
@@ -1207,7 +1211,7 @@ class Post < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def method_attributes
|
||||
list = [:uploader_name, :has_large, :tag_string_artist, :tag_string_character, :tag_string_copyright, :tag_string_general]
|
||||
list = [:uploader_name, :has_large, :tag_string_artist, :tag_string_character, :tag_string_copyright, :tag_string_general, :has_visible_children]
|
||||
if visible?
|
||||
list += [:file_url, :large_file_url, :preview_file_url]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user