Fix message send to all members javascript

This commit is contained in:
wvengen 2015-04-11 02:10:37 +02:00
parent 3d964b7bcf
commit 6bbbe5f6e2

View file

@ -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')