mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
Merge pull request #2012 from TracksApp/revert-1986-no-domain-name-for-relative-to-root
Revert "Don't include a protocol or domain for relative_to_root"
This commit is contained in:
commit
6230280d69
1 changed files with 1 additions and 1 deletions
|
|
@ -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 '/' + path; };
|
||||
function relative_to_root(path) { return '<%= root_url %>'+path; };
|
||||
<% if current_user.prefs.refresh != 0 -%>
|
||||
setup_auto_refresh(<%= current_user.prefs["refresh"].to_i*60000 %>);
|
||||
<% end -%>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue