Begin handling click events

This commit is contained in:
PCoder 2020-06-19 13:13:26 +05:30
parent ffae844ee5
commit 081f81c41c
2 changed files with 15 additions and 4 deletions

View file

@ -15,4 +15,14 @@ $( document ).ready(function() {
$('html,body').scrollTop(scrollmem);
});
// Toggle subscription and one-time payments div
$('#li-one-time-charges').click(function() {
console.log("li-one-time-charges clicked");
});
$('#li-subscriptions').click(function() {
console.log("li-one-time-charges clicked");
});
});

View file

@ -16,10 +16,10 @@
</div>
<ul class="nav nav-tabs">
<li class="active"><a href="#">{% trans "Subscriptions" %}</a></li>
<li><a href="#">{% trans "One-time payments" %}</a></li>
<li class="active" id="li-subscriptions"><a href="#">{% trans "Subscriptions" %}</a></li>
<li id="li-one-time-payments"><a href="#">{% trans "One-time payments" %}</a></li>
</ul>
<div class="subscriptions">
<div class="subscriptions" id="subscriptions">
<table class="table table-switch">
<thead>
<tr>
@ -73,7 +73,8 @@
{% endif %}
</div>
<div class="one-time-charges">
<div id="#one-time-charges" class="one-time-charges invisible">
<table class="table table-switch">
<thead>
<tr>