Merge branch 'no-history' into 'master'
Remove jquery.history.js reference See merge request LCA2018/symposion_app!28
This commit is contained in:
		
						commit
						fa18ef68fb
					
				
					 1 changed files with 0 additions and 25 deletions
				
			
		|  | @ -188,28 +188,3 @@ | |||
|     </div> | ||||
| 
 | ||||
| {% endblock %} | ||||
| 
 | ||||
| {% block extra_script %} | ||||
| {{ block.super }} | ||||
|     <script src="{{ STATIC_URL }}symposion/js/jquery.history.js"></script> | ||||
|     <script type="text/javascript"> | ||||
|         $(function() { | ||||
|             var History = window.History; | ||||
| 
 | ||||
|             $(window).bind("anchorchange", function() { | ||||
|                 $(".nav-tabs a[href='" + location.hash + "']").click(); | ||||
|             }); | ||||
| 
 | ||||
|             $('.nav-tabs a[data-toggle="tab"]').on('shown', function (e) { | ||||
|                 if (History.enabled) { | ||||
|                     History.pushState(null, null, $(e.target).attr("href")); | ||||
|                 } | ||||
|             }); | ||||
| 
 | ||||
|             if (window.location.hash !== '') { | ||||
|             	$('.nav-tabs a[href="' + window.location.hash + '"]').tab('show') | ||||
|             } | ||||
|         }); | ||||
|     </script> | ||||
| 
 | ||||
| {% endblock %} | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 James Polley
						James Polley