Dotclear

Changeset 2186:3f03eff5ea09


Ignore:
Timestamp:
10/01/13 14:22:03 (11 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

Prevent page from scrolling when opening a tab (not the first one). close #1718
A better idea could have been to add a prefix to hash.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/js/jquery/jquery.pageTabs.js

    r2162 r2186  
    1616 
    1717          if (hash !== undefined && hash) { 
    18                $('ul li a[href$="#'+hash+'"]').parent().trigger('click'); 
     18               window.scrollTo(0,0); 
    1919               active_tab = hash; 
    2020          } else if (active_tab == '') { // open first part 
Note: See TracChangeset for help on using the changeset viewer.

Sites map