sources: factor out 'Fetch source data' box into view component.

This commit is contained in:
evazion
2021-02-25 18:54:15 -06:00
parent 0eea654a48
commit e1ef94faf7
13 changed files with 74 additions and 59 deletions

View File

@@ -1,4 +1,4 @@
$("#source-info").replaceWith("<%= j render "info", source: @source %>");
$(".source-data").replaceWith("<%= j render_source_data(@source) %>");
$(document).trigger("danbooru:update-source-data", {
source: <%= raw @source.to_json %>,