Révision 7d7b5830
Ajouté par Assos Assos il y a environ 9 ans
drupal7/sites/all/modules/module_filter/js/module_filter_tab.js | ||
---|---|---|
418 | 418 |
Drupal.ModuleFilter.modulesTop = $('#module-filter-modules').offset().top; |
419 | 419 |
} |
420 | 420 |
else { |
421 |
// Calculate header offset; this is important in case the site is using |
|
422 |
// admin_menu module which has fixed positioning and is on top of everything |
|
423 |
// else. |
|
424 |
var headerOffset = Drupal.settings.tableHeaderOffset ? eval(Drupal.settings.tableHeaderOffset + '()') : 0; |
|
421 | 425 |
// Scroll back to top of #module-filter-modules. |
422 | 426 |
$('html, body').animate({ |
423 |
scrollTop: Drupal.ModuleFilter.modulesTop |
|
427 |
scrollTop: Drupal.ModuleFilter.modulesTop - headerOffset
|
|
424 | 428 |
}, 500); |
425 | 429 |
// $('html, body').scrollTop(Drupal.ModuleFilter.modulesTop); |
426 | 430 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules