colorbox_admin_settings.js 977 B

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