Merge pull request #1986 from TracksApp/no-domain-name-for-relative-to-root

Don't include a protocol or domain for relative_to_root
This commit is contained in:
Matt Rogers 2016-02-09 16:07:56 -06:00
commit fe359cf52e

View file

@ -15,7 +15,7 @@
var defaultTags = <%= default_tags_for_autocomplete.html_safe rescue '{}' %>;
var dateFormat = '<%= date_format_for_date_picker %>';
var weekStart = '<%= current_user.prefs.week_starts %>';
function relative_to_root(path) { return '<%= root_url %>'+path; };
function relative_to_root(path) { return '/' + path; };
<% if current_user.prefs.refresh != 0 -%>
setup_auto_refresh(<%= current_user.prefs["refresh"].to_i*60000 %>);
<% end -%>