1 |
85ad3d82
|
Assos Assos
|
(function ($) {
|
2 |
|
|
|
3 |
|
|
Drupal.behaviors.initColorboxAdminSettings = {
|
4 |
|
|
attach: function (context, settings) {
|
5 |
|
|
$('div.colorbox-custom-settings-activate input.form-radio', context).click(function () {
|
6 |
|
|
if (this.value == 1) {
|
7 |
|
|
$('div.colorbox-custom-settings', context).show();
|
8 |
|
|
}
|
9 |
|
|
else {
|
10 |
|
|
$('div.colorbox-custom-settings', context).hide();
|
11 |
|
|
}
|
12 |
|
|
});
|
13 |
|
|
$('div.colorbox-slideshow-settings-activate input.form-radio', context).click(function () {
|
14 |
|
|
if (this.value == 1) {
|
15 |
|
|
$('div.colorbox-slideshow-settings', context).show();
|
16 |
|
|
}
|
17 |
|
|
else {
|
18 |
|
|
$('div.colorbox-slideshow-settings', context).hide();
|
19 |
|
|
}
|
20 |
|
|
});
|
21 |
|
|
$('div.colorbox-title-trim-settings-activate input.form-radio', context).click(function () {
|
22 |
|
|
if (this.value == 1) {
|
23 |
|
|
$('div.colorbox-title-trim-settings', context).show();
|
24 |
|
|
}
|
25 |
|
|
else {
|
26 |
|
|
$('div.colorbox-title-trim-settings', context).hide();
|
27 |
|
|
}
|
28 |
|
|
});
|
29 |
|
|
}
|
30 |
|
|
};
|
31 |
|
|
|
32 |
|
|
})(jQuery); |