upload page: fix fetch source data when not using bookmarklet.

* #upload_referer_url no longer exists, just using #ref works.
* #upload_source defaults to params[:url], so using it instead of #url still works.

ref: https://github.com/r888888888/danbooru/issues/3850#issuecomment-417116385
This commit is contained in:
evazion
2018-08-29 16:50:16 -05:00
parent 55cbef52e4
commit cd11ae6008

View File

@@ -86,8 +86,8 @@ Upload.initialize_info_bookmarklet = function() {
Upload.initialize_info_manual = function() {
$("#fetch-data-manual").click(function(e) {
var source = $("#upload_source,#post_source,#url").val();
var referer = $("#upload_referer_url,#ref").val();
var source = $("#upload_source,#post_source").val();
var referer = $("#ref").val();
if (/^https?:\/\//.test(source)) {
$("#source-info span#loading-data").show();