diff --git a/app/javascript/src/javascripts/posts.js.erb b/app/javascript/src/javascripts/posts.js.erb index bd176f56c..14ccc3f23 100644 --- a/app/javascript/src/javascripts/posts.js.erb +++ b/app/javascript/src/javascripts/posts.js.erb @@ -30,7 +30,6 @@ Post.initialize_all = function() { this.initialize_post_sections(); this.initialize_post_image_resize_links(); this.initialize_post_image_resize_to_window_link(); - this.initialize_similar(); if (CurrentUser.data("always-resize-images") || (Utility.meta("viewport") && (window.screen.width <= 660))) { $("#image-resize-to-window-link").click(); @@ -171,13 +170,6 @@ Post.close_edit_dialog = function(e, ui) { $(document).trigger("danbooru:close-post-edit-dialog"); } -Post.initialize_similar = function() { - $("#similar-button").on("click.danbooru", function(e) { - $.get("/iqdb_queries", {"url": $("#post_source").val()}).done(function(html) {$("#iqdb-similar").html(html).show()}); - e.preventDefault(); - }); -} - Post.swipe_prev = function(e) { if ($(".paginator a[rel~=prev]").length) { location.href = $("a[rel~=prev]").attr("href"); diff --git a/app/views/posts/partials/show/_edit.html.erb b/app/views/posts/partials/show/_edit.html.erb index 12aa32a95..6c066f890 100644 --- a/app/views/posts/partials/show/_edit.html.erb +++ b/app/views/posts/partials/show/_edit.html.erb @@ -62,21 +62,14 @@