mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-12 18:34:22 +01:00
also update default_context_name
New actions are created with the context as defined in default_context_name. This value needs to be updated as shown in #1789.
This commit is contained in:
parent
f8f7762b94
commit
426b0fca20
3 changed files with 10 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ var <%=object_name%> = {
|
|||
<% else -%>
|
||||
<%=object_name%>.replace_context_form_with_updated_context();
|
||||
<% end -%>
|
||||
TracksForm.set_context_name("<%= escape_javascript(@context.name)%>");
|
||||
TracksForm.set_context_name_and_default_context_name("<%= escape_javascript(@context.name)%>");
|
||||
},
|
||||
remove_and_re_add_context: function() {
|
||||
$('#<%=dom_id(@context, 'container')%>').slideUp(500, function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue