badger/frontend — pull request #18 by jc4p (2011-12-28 21:41:23+00:00)
Title: Modify billing.js to set the correct initial value during promo

The "Purchase Credits" dialog currently says "PURCHASE 1 DOMAIN FOR $15" when you don't modify any of the options in the drop down for the temporary promotion. It correctly goes to "PURCHASE 1 DOMAIN FOR $8" if you go through the credits dropdown and switch it from 1 to anything and back to 1.

My commit just sets the initial value to match the price of a single domain during the promo, it could be done a lot better by setting an actual variable that holds onto the cost of a domain (like you were before the promo) but I figured it'd be better to leave it simple to not make it difficult to remove the promo later on.