From 54e3059cef161a020e09d17a0ee03dd2065a5b6b Mon Sep 17 00:00:00 2001 From: Levi Date: Mon, 30 Jan 2017 21:15:59 -0500 Subject: [PATCH] fixed payment membership button issue, fixed support us posts issue --- .../static/digitalglarus/js/edit_creditcard.js | 14 +++++++------- digitalglarus/static/digitalglarus/js/payment.js | 14 +++++++------- digitalglarus/templates/new_base_glarus.html | 2 +- digitalglarus/views.py | 1 + hosting/static/hosting/js/payment.js | 14 +++++++------- nosystemd/static/nosystemd/js/donation.js | 14 +++++++------- 6 files changed, 30 insertions(+), 29 deletions(-) diff --git a/digitalglarus/static/digitalglarus/js/edit_creditcard.js b/digitalglarus/static/digitalglarus/js/edit_creditcard.js index d4141f0c..c4d2e6fc 100644 --- a/digitalglarus/static/digitalglarus/js/edit_creditcard.js +++ b/digitalglarus/static/digitalglarus/js/edit_creditcard.js @@ -108,12 +108,12 @@ $( document ).ready(function() { } }; - $form.find('[type=submit]').prop('disabled', true); - var readyInterval = setInterval(function() { - if (paymentFormReady()) { - $form.find('[type=submit]').prop('disabled', false); - clearInterval(readyInterval); - } - }, 250); + // $form.find('[type=submit]').prop('disabled', true); + // var readyInterval = setInterval(function() { + // if (paymentFormReady()) { + // $form.find('[type=submit]').prop('disabled', false); + // clearInterval(readyInterval); + // } + // }, 250); }); diff --git a/digitalglarus/static/digitalglarus/js/payment.js b/digitalglarus/static/digitalglarus/js/payment.js index 8307be03..3b9e6cd9 100644 --- a/digitalglarus/static/digitalglarus/js/payment.js +++ b/digitalglarus/static/digitalglarus/js/payment.js @@ -152,13 +152,13 @@ $( document ).ready(function() { } }; - $form.find('[type=submit]').prop('disabled', true); - var readyInterval = setInterval(function() { - if (paymentFormReady()) { - $form.find('[type=submit]').prop('disabled', false); - clearInterval(readyInterval); - } - }, 250); + // $form.find('[type=submit]').prop('disabled', true); + // var readyInterval = setInterval(function() { + // if (paymentFormReady()) { + // $form.find('[type=submit]').prop('disabled', false); + // clearInterval(readyInterval); + // } + // }, 250); diff --git a/digitalglarus/templates/new_base_glarus.html b/digitalglarus/templates/new_base_glarus.html index 713b5ca8..c970f79b 100644 --- a/digitalglarus/templates/new_base_glarus.html +++ b/digitalglarus/templates/new_base_glarus.html @@ -266,7 +266,7 @@ - + diff --git a/digitalglarus/views.py b/digitalglarus/views.py index a33775c9..8474b7a4 100644 --- a/digitalglarus/views.py +++ b/digitalglarus/views.py @@ -40,6 +40,7 @@ class SupportusView(TemplateView): def get_context_data(self, *args, **kwargs): context = super(SupportusView, self).get_context_data(**kwargs) tags = ["dg-renovation"] + import pdb;pdb.set_trace() posts = Post.objects.filter(tags__name__in=tags, publish=True).translated(get_language()) context.update({ 'post_list': posts diff --git a/hosting/static/hosting/js/payment.js b/hosting/static/hosting/js/payment.js index dd6c64d4..c75e3d48 100644 --- a/hosting/static/hosting/js/payment.js +++ b/hosting/static/hosting/js/payment.js @@ -112,13 +112,13 @@ $( document ).ready(function() { } } - $form.find('[type=submit]').prop('disabled', true); - var readyInterval = setInterval(function() { - if (paymentFormReady()) { - $form.find('[type=submit]').prop('disabled', false); - clearInterval(readyInterval); - } - }, 250); + // $form.find('[type=submit]').prop('disabled', true); + // var readyInterval = setInterval(function() { + // if (paymentFormReady()) { + // $form.find('[type=submit]').prop('disabled', false); + // clearInterval(readyInterval); + // } + // }, 250); }); diff --git a/nosystemd/static/nosystemd/js/donation.js b/nosystemd/static/nosystemd/js/donation.js index b853cab7..731e05c0 100644 --- a/nosystemd/static/nosystemd/js/donation.js +++ b/nosystemd/static/nosystemd/js/donation.js @@ -114,13 +114,13 @@ $( document ).ready(function() { } } - $form.find('[type=submit]').prop('disabled', true); - var readyInterval = setInterval(function() { - if (paymentFormReady()) { - $form.find('[type=submit]').prop('disabled', false); - clearInterval(readyInterval); - } - }, 250); + // $form.find('[type=submit]').prop('disabled', true); + // var readyInterval = setInterval(function() { + // if (paymentFormReady()) { + // $form.find('[type=submit]').prop('disabled', false); + // clearInterval(readyInterval); + // } + // }, 250); });