Files
danbooru/app/views/iqdb_queries/create_by_post.js.erb
2016-12-02 13:11:10 -08:00

11 lines
331 B
Plaintext

var html = '';
<% if @results.any? %>
<% @results.each do |match| %>
html += '<%= j PostPresenter.preview(Post.find(match["post_id"]), :tags => "status:any") %>';
<% end %>
<% else %>
html += '<p>No matches found</p>';
<% end %>
$("<div></div>").html(html).dialog({title: "Similar Posts", modal: true, width: "600px"});