Fix bug where failed iqdb query would be made

Query should only be made automatically when using bookmarklet
This commit is contained in:
Toks
2014-06-11 22:53:12 -04:00
parent 1b63f4f493
commit 552bd377f3

View File

@@ -21,7 +21,9 @@
}
Danbooru.Upload.initialize_iqdb_source = function() {
$.post("/iqdb_queries", {"url": $("#normalized_url").val()}).done(function(html) {$("#iqdb-similar").html(html)});
if (/^https?:\/\//.test($("#normalized_url").val())) {
$.post("/iqdb_queries", {"url": $("#normalized_url").val()}).done(function(html) {$("#iqdb-similar").html(html)});
}
}
Danbooru.Upload.initialize_enter_on_tags = function() {