Projet

Général

Profil

Révision 6e3ce7c2

Ajouté par Assos Assos il y a environ 3 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ctools/js/dependent.js
14 14
 * - Checkboxes don't have their own id, so you need to add one in a div
15 15
 *   around the checkboxes via #prefix and #suffix. You actually need to add TWO
16 16
 *   divs because it's the parent that gets hidden. Also be sure to retain the
17
 *   'expand_checkboxes' in the #process array, because the CTools process will
17
 *   'form_process_checkboxes' in the #process array, because the CTools process will
18 18
 *   override it.
19 19
 */
20 20

  
......
34 34
      }
35 35
    }
36 36
    return false;
37
  }
37
  };
38 38

  
39 39

  
40 40
  Drupal.CTools.dependent.autoAttach = function() {
......
118 118
            }
119 119
          }
120 120
          return val;
121
        }
121
        };
122 122

  
123 123
        var setChangeTrigger = function(trigger_id, bind_id) {
124 124
          // Triggered when change() is clicked.
......
205 205
                }
206 206
              }
207 207
            }
208
          }
208
          };
209 209

  
210 210
          $(trigger_id).bind('change.ctools-dependent', function() {
211 211
            // Trigger the internal change function
......
214 214
          });
215 215
          // Trigger initial reaction
216 216
          changeTrigger(trigger_id, bind_id);
217
        }
217
        };
218 218
        setChangeTrigger(trigger_id, bind_id);
219 219
      }
220 220
    }
221
  }
221
  };
222 222

  
223 223
  Drupal.behaviors.CToolsDependent = {
224 224
    attach: function (context) {
......
240 240
        })
241 241
        .trigger('change.ctools-dependent');
242 242
    }
243
  }
243
  };
244 244
})(jQuery);

Formats disponibles : Unified diff