mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-21 17:50:13 +01:00
Fixes #442, Ajax problem updating context on context listing page.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@442 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
3af574f76e
commit
1f09c41f95
1 changed files with 2 additions and 3 deletions
|
|
@ -34,7 +34,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div id="<%= dom_id(context, 'edit') %>" class="edit-form" style="display:none;">
|
||||
<% form_tag context_path(context), { :id => dom_id(context, 'edit_form'), :class => "inline-form", :method => :put } do -%>
|
||||
<% form_tag context_path(context), { :id => dom_id(context, 'edit_form'), :class => "inline-form edit-context-form", :method => :put } do -%>
|
||||
<table style="table-layout: fixed;" width="450">
|
||||
<%= render :partial => 'context_form', :object => context %>
|
||||
<tr>
|
||||
|
|
@ -43,8 +43,7 @@
|
|||
</tr>
|
||||
</table>
|
||||
<% end -%>
|
||||
<% apply_behavior ".context form.inline-form'", make_remote_form(
|
||||
:complete => "Effect.Appear($(this).up('.list'));" ) %>
|
||||
<% apply_behavior ".edit-context-form", make_remote_form(:complete => "Effect.Appear($(this).up('.list'));" ) %>
|
||||
<% apply_behavior "a.form_reset:click", :prevent_default => true do |page, element|
|
||||
element.up('.list').down('.context').toggle
|
||||
element.up('.edit-form').toggle
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue