Add slideToggles to subscription/one-time-payments divs

This commit is contained in:
PCoder 2020-06-19 15:38:26 +05:30
parent 0dc9c6cdca
commit c4e7f99202
2 changed files with 6 additions and 2 deletions

View file

@ -140,9 +140,13 @@ $(document).ready(function() {
// Toggle subscription and one-time payments div
$('#li-one-time-charges').click(function() {
console.log("li-one-time-charges clicked");
$('#subscriptions').slideToggle();
$('#one-time-charges').slideToggle();
});
$('#li-subscriptions').click(function() {
console.log("li-one-time-charges clicked");
console.log("li-one-time-charges clicked");
$('#one-time-charges').slideToggle();
$('#subscriptions').slideToggle();
});
});

View file

@ -74,7 +74,7 @@
</div>
<div id="#one-time-charges" class="one-time-charges invisible">
<div id="#one-time-charges" class="one-time-charges" style="display: none;">
<table class="table table-switch">
<thead>
<tr>