JavaScript working for subdir

This commit is contained in:
Eric Allen 2010-03-14 16:37:09 -04:00
parent a0d12c95e9
commit 25f0f3dfd9
3 changed files with 8 additions and 7 deletions

View file

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