mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-14 03:14:22 +01:00
fix the deprecation warnings that were shown during the tests
This commit is contained in:
parent
a832417c59
commit
09830d044d
13 changed files with 23 additions and 22 deletions
|
|
@ -22,7 +22,7 @@ function clear_form() {
|
|||
}
|
||||
|
||||
function html_for_context_listing() {
|
||||
return "<%= @saved ? escape_javascript(render(:partial => 'context_listing', :locals => { :context_listing => @context })) : "" %>";
|
||||
return "<%= @saved ? escape_javascript(render(:partial => 'context_listing', :object => @context )) : "" %>";
|
||||
}
|
||||
|
||||
function html_for_error_messages() {
|
||||
|
|
|
|||
|
|
@ -17,5 +17,5 @@ function set_focus() {
|
|||
}
|
||||
|
||||
function html_for_edit_form() {
|
||||
return "<%= escape_javascript(render(:partial => 'context_form', :locals => { :context_form => @context })) %>"
|
||||
return "<%= escape_javascript(render(:partial => 'context_form', :object => @context)) %>"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue