Révision e9f59589
Ajouté par Assos Assos il y a presque 10 ans
drupal7/sites/all/modules/field_group/horizontal-tabs/horizontal-tabs.js | ||
---|---|---|
50 | 50 |
if (!tab_focus) { |
51 | 51 |
// If the current URL has a fragment and one of the tabs contains an |
52 | 52 |
// element that matches the URL fragment, activate that tab. |
53 |
if (window.location.hash && window.location.hash !== '#' && $(window.location.hash, this).length) { |
|
53 |
var hash = window.location.hash.replace(/[=%;,\/]/g, ""); |
|
54 |
if (hash !== '#' && $(hash, this).length) { |
|
54 | 55 |
tab_focus = $(window.location.hash, this).closest('.horizontal-tabs-pane'); |
55 | 56 |
} |
56 | 57 |
else { |
Formats disponibles : Unified diff
Weekly update of contrib modules