Files
danbooru/app/views/iqdb_queries/create_by_post.js.erb
2014-07-30 16:23:07 -04:00

11 lines
328 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"});