root / drupal7 / sites / all / modules / comment_notify / comment_notify.js @ a45e4bc1
1 | 85ad3d82 | Assos Assos | (function ($) { |
---|---|---|---|
2 | |||
3 | Drupal.behaviors.commentNotify = { |
||
4 | attach: function (context) { |
||
5 | $('#edit-notify', context) |
||
6 | .bind('change', function() { |
||
7 | $('#edit-notify-type', context) |
||
8 | [this.checked ? 'show' : 'hide']() |
||
9 | .find('input[type=checkbox]:checked').attr('checked', 'checked'); |
||
10 | }) |
||
11 | .trigger('change');
|
||
12 | } |
||
13 | } |
||
14 | |||
15 | })(jQuery); |