Révision 5d12d676
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/views/js/views-contextual.js | ||
---|---|---|
4 | 4 |
*/ |
5 | 5 |
(function ($) { |
6 | 6 |
|
7 |
Drupal.behaviors.viewsContextualLinks = { |
|
8 |
attach: function (context) { |
|
9 |
// If there are views-related contextual links attached to the main page |
|
10 |
// content, find the smallest region that encloses both the links and the |
|
11 |
// view, and display it as a contextual links region. |
|
12 |
$('.views-contextual-links-page', context).closest(':has(".view"):not("body")').addClass('contextual-links-region'); |
|
13 |
} |
|
14 |
}; |
|
7 |
Drupal.behaviors.viewsContextualLinks = {
|
|
8 |
attach: function (context) {
|
|
9 |
// If there are views-related contextual links attached to the main page
|
|
10 |
// content, find the smallest region that encloses both the links and the
|
|
11 |
// view, and display it as a contextual links region.
|
|
12 |
$('.views-contextual-links-page', context).closest(':has(".view"):not("body")').addClass('contextual-links-region');
|
|
13 |
}
|
|
14 |
};
|
|
15 | 15 |
|
16 | 16 |
})(jQuery); |
Formats disponibles : Unified diff
Weekly update of contrib modules