Updates to the JS calucluations

* Moved JavaScript into a Class
* Updated the alignment of the form
* Added some JavaScript form DZone to format the number to a currency

  #1135
This commit is contained in:
Eric Davis
2008-05-20 22:52:30 -07:00
parent f8399f1968
commit cbd084eae1
3 changed files with 114 additions and 71 deletions
+1 -1
View File
@@ -7,6 +7,6 @@ module DeliverablesHelper
:class => "budget-calculation",
:id => 'deliverable_' + field.to_s + '_subtotal'
)
) + observe_field('deliverable_' + field.to_s, :function => "updateSubtotal('deliverable_#{field.to_s}'); updateBudget('deliverable_budget');")
) + observe_field('deliverable_' + field.to_s, :function => "new Budget().updateSubtotal('deliverable_#{field.to_s}'); new Budget().updateBudget('deliverable_budget');")
end
end