related tags: build html server-side instead of client-side.
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
$("#source-info").replaceWith("<%= j render "info", source: @source %>");
|
||||
|
||||
Danbooru.RelatedTag.recent_artists = <%= raw @source.artists.to_json(include: :sorted_urls) %>;
|
||||
Danbooru.RelatedTag.translated_tags = <%= raw @source.translated_tags.to_json %>;
|
||||
Danbooru.RelatedTag.build_all();
|
||||
$(document).trigger("danbooru:update-source-data", <%= raw @source.to_json %>);
|
||||
|
||||
if ($("#c-uploads #a-new").length) {
|
||||
$("#upload_artist_commentary_title").val(<%= raw @source.dtext_artist_commentary_title.to_json %>);
|
||||
|
||||
Reference in New Issue
Block a user