fixed payment membership button issue, fixed support us posts issue

This commit is contained in:
Levi 2017-01-30 21:15:59 -05:00
parent 2471a7ed12
commit 54e3059cef
6 changed files with 30 additions and 29 deletions

View file

@ -108,12 +108,12 @@ $( document ).ready(function() {
} }
}; };
$form.find('[type=submit]').prop('disabled', true); // $form.find('[type=submit]').prop('disabled', true);
var readyInterval = setInterval(function() { // var readyInterval = setInterval(function() {
if (paymentFormReady()) { // if (paymentFormReady()) {
$form.find('[type=submit]').prop('disabled', false); // $form.find('[type=submit]').prop('disabled', false);
clearInterval(readyInterval); // clearInterval(readyInterval);
} // }
}, 250); // }, 250);
}); });

View file

@ -152,13 +152,13 @@ $( document ).ready(function() {
} }
}; };
$form.find('[type=submit]').prop('disabled', true); // $form.find('[type=submit]').prop('disabled', true);
var readyInterval = setInterval(function() { // var readyInterval = setInterval(function() {
if (paymentFormReady()) { // if (paymentFormReady()) {
$form.find('[type=submit]').prop('disabled', false); // $form.find('[type=submit]').prop('disabled', false);
clearInterval(readyInterval); // clearInterval(readyInterval);
} // }
}, 250); // }, 250);

View file

@ -266,7 +266,7 @@
<script src="{% static 'digitalglarus/js/cbpAnimatedHeader.js' %}"></script> <script src="{% static 'digitalglarus/js/cbpAnimatedHeader.js' %}"></script>
<!-- Stripe Lib --> <!-- Stripe Lib -->
<script type="text/javascript" src="//js.stripe.com/v2/"></script> <script type="text/javascript" src="https://js.stripe.com/v2/"></script>
<!-- Proccess payment lib --> <!-- Proccess payment lib -->
<script src="{% static 'digitalglarus/js/payment.js' %}"></script> <script src="{% static 'digitalglarus/js/payment.js' %}"></script>

View file

@ -40,6 +40,7 @@ class SupportusView(TemplateView):
def get_context_data(self, *args, **kwargs): def get_context_data(self, *args, **kwargs):
context = super(SupportusView, self).get_context_data(**kwargs) context = super(SupportusView, self).get_context_data(**kwargs)
tags = ["dg-renovation"] tags = ["dg-renovation"]
import pdb;pdb.set_trace()
posts = Post.objects.filter(tags__name__in=tags, publish=True).translated(get_language()) posts = Post.objects.filter(tags__name__in=tags, publish=True).translated(get_language())
context.update({ context.update({
'post_list': posts 'post_list': posts

View file

@ -112,13 +112,13 @@ $( document ).ready(function() {
} }
} }
$form.find('[type=submit]').prop('disabled', true); // $form.find('[type=submit]').prop('disabled', true);
var readyInterval = setInterval(function() { // var readyInterval = setInterval(function() {
if (paymentFormReady()) { // if (paymentFormReady()) {
$form.find('[type=submit]').prop('disabled', false); // $form.find('[type=submit]').prop('disabled', false);
clearInterval(readyInterval); // clearInterval(readyInterval);
} // }
}, 250); // }, 250);
}); });

View file

@ -114,13 +114,13 @@ $( document ).ready(function() {
} }
} }
$form.find('[type=submit]').prop('disabled', true); // $form.find('[type=submit]').prop('disabled', true);
var readyInterval = setInterval(function() { // var readyInterval = setInterval(function() {
if (paymentFormReady()) { // if (paymentFormReady()) {
$form.find('[type=submit]').prop('disabled', false); // $form.find('[type=submit]').prop('disabled', false);
clearInterval(readyInterval); // clearInterval(readyInterval);
} // }
}, 250); // }, 250);
}); });