Ignore:
Timestamp:
17 Feb 2014, 07:03:16 (11 years ago)
Author:
Henrik Bettermann
Message:

Activate current tab, if any, but jump to top, if hash value contains '-top'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/uli-diazo-themed/layout/static/js/kofa-activate-tab.js

    r11104 r11107  
    11$(document).ready(function(){
    22
    3   //* activate current tab, if any... */
    4   $('a[href="' + window.location.hash + '"]').trigger('click');
     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');
    59
    610});
Note: See TracChangeset for help on using the changeset viewer.