Révision 91f42c9e
Ajouté par Assos Assos il y a presque 10 ans
drupal7/sites/all/modules/colorbox/js/colorbox.js | ||
---|---|---|
8 | 8 |
|
9 | 9 |
if (settings.colorbox.mobiledetect && window.matchMedia) { |
10 | 10 |
// Disable Colorbox for small screens. |
11 |
mq = window.matchMedia("(max-device-width: " + settings.colorbox.mobiledevicewidth + ")"); |
|
11 |
var mq = window.matchMedia("(max-device-width: " + settings.colorbox.mobiledevicewidth + ")");
|
|
12 | 12 |
if (mq.matches) { |
13 | 13 |
return; |
14 | 14 |
} |
... | ... | |
17 | 17 |
$('.colorbox', context) |
18 | 18 |
.once('init-colorbox') |
19 | 19 |
.colorbox(settings.colorbox); |
20 |
|
|
21 |
$(context).bind('cbox_complete', function () { |
|
22 |
Drupal.attachBehaviors('#cboxLoadedContent'); |
|
23 |
}); |
|
20 | 24 |
} |
21 | 25 |
}; |
22 | 26 |
|
23 |
{ |
|
24 |
$(document).bind('cbox_complete', function () { |
|
25 |
Drupal.attachBehaviors('#cboxLoadedContent'); |
|
26 |
}); |
|
27 |
} |
|
28 |
|
|
29 | 27 |
})(jQuery); |
Formats disponibles : Unified diff
Weekly update of contrib modules