Begin handling click events
This commit is contained in:
		
					parent
					
						
							
								ffae844ee5
							
						
					
				
			
			
				commit
				
					
						081f81c41c
					
				
			
		
					 2 changed files with 15 additions and 4 deletions
				
			
		|  | @ -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"); | ||||
|     }); | ||||
| 
 | ||||
| 
 | ||||
| }); | ||||
|  | @ -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> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue