Projet

Général

Profil

Révision b433176d

Ajouté par Assos Assos il y a environ 4 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/colorbox/js/colorbox_admin_settings.js
7 7

  
8 8
Drupal.behaviors.initColorboxAdminSettings = {
9 9
  attach: function (context, settings) {
10

  
10 11
    $('div.colorbox-custom-settings-activate input.form-radio', context).click(function () {
11 12
      if (this.value == 1) {
12 13
        $('div.colorbox-custom-settings', context).show();
......
31 32
        $('div.colorbox-title-trim-settings', context).hide();
32 33
      }
33 34
    });
35
    $('.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
    });
34 45
  }
35 46
};
36 47

  

Formats disponibles : Unified diff