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:
Carsten Otto 2015-05-25 11:57:10 +02:00
parent f8f7762b94
commit 426b0fca20
3 changed files with 10 additions and 1 deletions

View file

@ -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() {