Skip to content

Commit

Permalink
Merge pull request #154 from bmic-development/wth-price-revamp
Browse files Browse the repository at this point in the history
wth - SPARCCatalog Pricing Map Rates (Section): Delete Override Price
  • Loading branch information
Stuart-Johnson committed Mar 28, 2017
2 parents ee04be6 + bdbbad6 commit 5c0815b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/assets/javascripts/catalog_manager/update.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ $(document).ready ->
validate_numbers_only(this)
)

$(document).on 'change', '.rate_field', ->
if $(this).val() == ''
service_rate = $(this).closest('fieldset').find('.service_rate').val()
$(this).val(service_rate)

$('.apply_federal_to_all_link').live('click', ->
federal_value = $(this).closest('tr').siblings('.federal_row').find('.federal_percentage_field').val()
$(this).closest('tr').siblings('.corporate_row').find('.corporate_percentage_field').val(federal_value).change()
Expand Down

0 comments on commit 5c0815b

Please sign in to comment.