12345678910111213141516171819202122232425262728293031323334353637 |
- /**
- * @file
- * Colorbox module admin settings js.
- */
- (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);
|