source: main/kofacustom.sampleuni/trunk/layout/static/js/kofa-activate-tab.js @ 17397

Last change on this file since 17397 was 11706, checked in by Henrik Bettermann, 10 years ago
  • Remove waeup.kofa from sources. Use waeup.kofa PyPI package instead.
  • Copy layout folder from waeup.kofa. kofacustom.sampleuni uses its own Diazo layout.
File size: 225 bytes
RevLine 
[11706]1$(document).ready(function(){
2
3/*
4Activate current tab, if any, but jump to top, if hash value contains '-top'
5*/
6
7  var anchor = window.location.hash.replace('-top','');
8  $('a[href="' + anchor + '"]').trigger('click');
9
10});
Note: See TracBrowser for help on using the repository browser.