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