Use normalized url for iqdb similar search
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
Danbooru.Upload.initialize_iqdb_source = function() {
|
Danbooru.Upload.initialize_iqdb_source = function() {
|
||||||
$.get("/iqdb/similar_by_source", {"source": $("#upload_source").val()}).done(function(html) {$("#iqdb-similar").html(html)});
|
$.get("/iqdb/similar_by_source", {"source": $("#normalized_url").val()}).done(function(html) {$("#iqdb-similar").html(html)});
|
||||||
}
|
}
|
||||||
|
|
||||||
Danbooru.Upload.initialize_enter_on_tags = function() {
|
Danbooru.Upload.initialize_enter_on_tags = function() {
|
||||||
|
|||||||
@@ -17,6 +17,8 @@
|
|||||||
<%= error_messages_for "upload" %>
|
<%= error_messages_for "upload" %>
|
||||||
|
|
||||||
<%= form_for(@upload, :html => {:multipart => true, :class => "simple_form", :id => "form"}) do |f| %>
|
<%= form_for(@upload, :html => {:multipart => true, :class => "simple_form", :id => "form"}) do |f| %>
|
||||||
|
<%= hidden_field_tag :normalized_url, @normalized_url %>
|
||||||
|
|
||||||
<% if CurrentUser.is_contributor? %>
|
<% if CurrentUser.is_contributor? %>
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<label for="upload_as_pending">
|
<label for="upload_as_pending">
|
||||||
|
|||||||
Reference in New Issue
Block a user