mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-24 16:14:07 +01:00
update form with new context name
This commit is contained in:
parent
556c68c2e6
commit
ae4ce272ff
4 changed files with 15 additions and 2 deletions
|
|
@ -659,7 +659,7 @@ var ContextListPage = {
|
|||
$.post(relative_to_root('contexts/'+context_id), {
|
||||
'context[name]': value,
|
||||
'_method': 'put'
|
||||
}, highlight);
|
||||
}, highlight, 'script');
|
||||
return value;
|
||||
},
|
||||
setup_behavior: function() {
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ var <%=object_name%> = {
|
|||
<% else -%>
|
||||
<%=object_name%>.replace_context_form_with_updated_context();
|
||||
<% end -%>
|
||||
TracksForm.set_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