Fix message send to all members javascript
This commit is contained in:
parent
3d964b7bcf
commit
6bbbe5f6e2
1 changed files with 3 additions and 1 deletions
|
@ -10,13 +10,15 @@
|
||||||
theme: 'facebook'
|
theme: 'facebook'
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#message_sent_to_all').on('touchclick', function() {
|
$('#message_sent_to_all').on('change', function() {
|
||||||
if ($(this).is(':checked')) {
|
if ($(this).is(':checked')) {
|
||||||
$('#recipients').slideUp();
|
$('#recipients').slideUp();
|
||||||
} else {
|
} else {
|
||||||
$('#recipients').slideDown();
|
$('#recipients').slideDown();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// make sure state is correct when loading
|
||||||
|
$('#recipients').toggle(!$('#message_sent_to_all').is(':checked'));
|
||||||
});
|
});
|
||||||
|
|
||||||
- title t('.title')
|
- title t('.title')
|
||||||
|
|
Loading…
Reference in a new issue