~evanj/cms

eeb893a1458fb57bec63d7a97d3c7005c723715a — Evan M Jones 1 year, 20 days ago 991b370
Fix(HEAD~1): Minor bug fixes to previous commit.
3 files changed, 3 insertions(+), 2 deletions(-)

M internal/c/stripe/stripe.go
M internal/s/db/org.go
M internal/v/js/content.js
M internal/c/stripe/stripe.go => internal/c/stripe/stripe.go +1 -0
@@ 34,6 34,7 @@ func (s *StripeEndpoint) ServeHTTP(w http.ResponseWriter, r *http.Request) {
		err := s.stripe.CompleteCheckout(r.FormValue("session_id"))
		if err != nil {
			s.Error2(w, r, http.StatusInternalServerError, err)
			return
		}
		s.Redirect(w, r, "/")
		return

M internal/s/db/org.go => internal/s/db/org.go +1 -1
@@ 8,5 8,5 @@ import (
)

func (db *DB) OrgGiveTier(u user.User, t tier.Tier) error {
	return errors.New("no complete")
	return errors.New("not complete")
}

M internal/v/js/content.js => internal/v/js/content.js +1 -1
@@ 7,7 7,7 @@
    saveBtn.addEventListener('click', function contentUpdate(e) { 
      e.preventDefault()
      e.stopPropagation()
      document.querySelector('form[action="/content/update"]').submit()
      document.querySelector('form[action="/content"]').submit()
    })
  }