1234567891011121314151617181920212223242526272829303132 |
- (function ($) {
- Drupal.behaviors.initColorboxAdminSettings = {
- attach: function (context, settings) {
- $('div.colorbox-custom-settings-activate input.form-radio', context).click(function () {
- if (this.value == 1) {
- $('div.colorbox-custom-settings', context).show();
- }
- else {
- $('div.colorbox-custom-settings', context).hide();
- }
- });
- $('div.colorbox-slideshow-settings-activate input.form-radio', context).click(function () {
- if (this.value == 1) {
- $('div.colorbox-slideshow-settings', context).show();
- }
- else {
- $('div.colorbox-slideshow-settings', context).hide();
- }
- });
- $('div.colorbox-title-trim-settings-activate input.form-radio', context).click(function () {
- if (this.value == 1) {
- $('div.colorbox-title-trim-settings', context).show();
- }
- else {
- $('div.colorbox-title-trim-settings', context).hide();
- }
- });
- }
- };
- })(jQuery);
|