potential fix for #2404

This commit is contained in:
r888888888
2015-06-10 17:28:28 -07:00
parent 76dd4bac22
commit fd74f860ee
12 changed files with 34 additions and 36 deletions

View File

@@ -4,7 +4,7 @@
<div id="source-info">
<% if source.try(:available?) %>
<p><%= link_to "Fetch source data", source_path(:format => "json", :url => source.referer_url(self)), :id => "fetch-data-bookmarklet", :style => "display: none;" %></p>
<p><%= link_to "Fetch source data", source_path(:format => "json", :url => source.referer_url), :id => "fetch-data-bookmarklet", :style => "display: none;" %></p>
<p><%= content_tag "span", "Loading #{source.site_name} data...", :id => "loading-data" %></p>
<% else %>
<p><%= link_to "Fetch source data", source_path(:format => "json"), :id => "fetch-data-manual" %></p>

View File

@@ -15,6 +15,7 @@
<%= form_for(@upload, :html => {:multipart => true, :class => "simple_form", :id => "form"}) do |f| %>
<%= hidden_field_tag :normalized_url, @normalized_url %>
<%= hidden_field_tag :referer_url, @source.try(:referer_url) %>
<% if CurrentUser.is_contributor? %>
<div class="input">