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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user