Skip to content

Commit bbbf0e1

Browse files
committed
Merge pull request gregschmit#40 from kschutt/translate_relative_root
added relative root to translate path for summary fetch
2 parents b032e7c + 3ed8ebd commit bbbf0e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/assets/javascripts/recurring_select_dialog.js.coffee.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ window.RecurringSelectDialog =
161161
summaryFetch: ->
162162
return if !(@current_rule.hash? && (rule_type = @current_rule.hash.rule_type)?)
163163
$.ajax
164-
url: "/recurring_select/translate",
164+
url: "<%= Rails.application.config.action_controller.relative_url_root %>/recurring_select/translate",
165165
type: "POST",
166166
data: @current_rule.hash
167167
success: @summaryFetchSuccess

0 commit comments

Comments
 (0)