Files
danbooru/app/views/sources/show.js.erb

10 lines
436 B
Plaintext

$("#source-info").replaceWith("<%= j render "info", source: @source %>");
$(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 %>);
$("#upload_artist_commentary_desc").val(<%= raw @source.dtext_artist_commentary_desc.to_json %>);
Danbooru.Upload.toggle_commentary();
}