1 |
b08fce64
|
Assos Assos
|
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
85ad3d82
|
Assos Assos
|
(function ($) {
|
7 |
|
|
|
8 |
|
|
Drupal.behaviors.initColorboxAdminSettings = {
|
9 |
|
|
attach: function (context, settings) {
|
10 |
b433176d
|
Assos Assos
|
|
11 |
85ad3d82
|
Assos Assos
|
$('div.colorbox-custom-settings-activate input.form-radio', context).click(function () {
|
12 |
|
|
if (this.value == 1) {
|
13 |
|
|
$('div.colorbox-custom-settings', context).show();
|
14 |
|
|
}
|
15 |
|
|
else {
|
16 |
|
|
$('div.colorbox-custom-settings', context).hide();
|
17 |
|
|
}
|
18 |
|
|
});
|
19 |
|
|
$('div.colorbox-slideshow-settings-activate input.form-radio', context).click(function () {
|
20 |
|
|
if (this.value == 1) {
|
21 |
|
|
$('div.colorbox-slideshow-settings', context).show();
|
22 |
|
|
}
|
23 |
|
|
else {
|
24 |
|
|
$('div.colorbox-slideshow-settings', context).hide();
|
25 |
|
|
}
|
26 |
|
|
});
|
27 |
|
|
$('div.colorbox-title-trim-settings-activate input.form-radio', context).click(function () {
|
28 |
|
|
if (this.value == 1) {
|
29 |
|
|
$('div.colorbox-title-trim-settings', context).show();
|
30 |
|
|
}
|
31 |
|
|
else {
|
32 |
|
|
$('div.colorbox-title-trim-settings', context).hide();
|
33 |
|
|
}
|
34 |
|
|
});
|
35 |
b433176d
|
Assos Assos
|
$('.colorbox-reset-specific-pages-default', context).click(function (event) {
|
36 |
|
|
|
37 |
|
|
event.preventDefault();
|
38 |
|
|
|
39 |
|
|
var colorbox_specific_pages_default_value = Drupal.settings.colorbox.specificPagesDefaultValue;
|
40 |
|
|
|
41 |
|
|
if (typeof colorbox_specific_pages_default_value !== 'undefined' && colorbox_specific_pages_default_value.length > 0) {
|
42 |
|
|
$("#edit-colorbox-pages").val(colorbox_specific_pages_default_value);
|
43 |
|
|
}
|
44 |
|
|
});
|
45 |
85ad3d82
|
Assos Assos
|
}
|
46 |
|
|
};
|
47 |
|
|
|
48 |
|
|
})(jQuery); |