blob: a2bbc2a967765a1d1938f54bdb38c9f42d3f4412 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/**
* @file
* Javascript related to contextual links.
*/
(function ($) {
Drupal.behaviors.viewsContextualLinks = {
attach: function (context) {
// If there are views-related contextual links attached to the main page
// content, find the smallest region that encloses both the links and the
// view, and display it as a contextual links region.
$('.views-contextual-links-page', context).closest(':has(".view"):not("body")').addClass('contextual-links-region');
}
};
})(jQuery);
|