mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Fix for plan update
This commit is contained in:
parent
ec306f9059
commit
1efe0d486b
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue