Fix for plan update

This commit is contained in:
Kyle Drake 2015-08-12 15:33:29 -05:00
parent ec306f9059
commit 1efe0d486b
2 changed files with 4 additions and 3 deletions

View file

@ -35,9 +35,6 @@ post '/plan/update' do
end
end
# Do not create customer if there is already a customer. Is this necessary?
redirect request.referrer if current_site.stripe_subscription_id
site ||= parent_site
DB.transaction do

View file

@ -13,6 +13,10 @@
var signupform = $(event.target)
<% if current_site && parent_site.stripe_subscription_id && !request.path.match(/\/settings/) %>
return true
<% end %>
var planError = $('#plan_error')
planError.css('display', 'none')
signupform.find(':submit').prop('disabled', true)