Révision 91f42c9e
Ajouté par Assos Assos il y a presque 10 ans
drupal7/sites/all/modules/colorbox/styles/plain/colorbox_style.js | ||
---|---|---|
2 | 2 |
|
3 | 3 |
Drupal.behaviors.initColorboxPlainStyle = { |
4 | 4 |
attach: function (context, settings) { |
5 |
$(document).bind('cbox_complete', function () {
|
|
5 |
$(context).bind('cbox_complete', function () {
|
|
6 | 6 |
// Make all the controls invisible. |
7 | 7 |
$('#cboxCurrent, #cboxSlideshow, #cboxPrevious, #cboxNext', context).addClass('element-invisible'); |
8 | 8 |
// Replace "Close" with "×" and show. |
... | ... | |
24 | 24 |
} |
25 | 25 |
}); |
26 | 26 |
}); |
27 |
$(document).bind('cbox_closed', function () {
|
|
27 |
$(context).bind('cbox_closed', function () {
|
|
28 | 28 |
$('#cboxClose', context).removeClass('cbox-close-plain'); |
29 | 29 |
}); |
30 | 30 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules