fixed payment membership button issue, fixed support us posts issue
This commit is contained in:
parent
2471a7ed12
commit
54e3059cef
6 changed files with 30 additions and 29 deletions
|
@ -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);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue