Permalink
Browse files

Fix AJAX to add new salary item to salary template.

  • Loading branch information...
1 parent e691891 commit 5d61d688b10619fba20e987db9a6cfa0c29c7a2a @huerlisi committed Mar 20, 2012
@@ -1,5 +1,5 @@
= f.inputs t_title(:list, SalaryItem) do
- %table.zebra-striped.nested-form-container.collection
+ %table.zebra-striped.salary_items.collection.nested-form-container
%thead
= render 'salary_items/list_header', :template => f.object
%tbody.sortable
@@ -1,2 +1,2 @@
-$('#salary_items tbody').append('<%=j render 'salary_item_form' %>');
+$('.salary_items.collection tbody').append('<%=j render 'salary_item_form' %>');
initializeBehaviours();

0 comments on commit 5d61d68

Please sign in to comment.