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