Updated the JS API to be singleton, #1135
This commit is contained in:
1 parent
cbd084eae1
commit
df37d248a1
2 files changed
+67
-28
No files matched your search
@@ -5,8 +5,8 @@ module DeliverablesHelper
|
||||
content_tag(:span,
|
||||
0,
|
||||
:class => "budget-calculation",
|
||||
:id => 'deliverable_' + field.to_s + '_subtotal'
|
||||
:id => field.to_s + '_subtotal'
|
||||
)
|
||||
) + observe_field('deliverable_' + field.to_s, :function => "new Budget().updateSubtotal('deliverable_#{field.to_s}'); new Budget().updateBudget('deliverable_budget');")
|
||||
) + observe_field('deliverable_' + field.to_s, :function => "new Budget.updateAmounts();")
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user