root / drupal7 / sites / all / modules / comment_notify / comment_notify.js @ edccd837
1 |
(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); |