Index: trunk/extensions/MoodBar/modules/ext.moodBar.dashboard/ext.moodBar.dashboard.js |
— | — | @@ -713,13 +713,7 @@ |
714 | 714 | |
715 | 715 | //only allow one of the secondary filters to be checked |
716 | 716 | $( 'input[type=checkbox].fbd-filters-check').click(function(){ |
717 | | - var count = $( 'input[type=checkbox].fbd-filters-check').length, |
718 | | - state = $(this).prop('checked'); //save state of checkbox |
719 | | - |
720 | | - if(count > 1) { |
721 | | - $( 'input[type=checkbox].fbd-filters-check').prop('checked', false); |
722 | | - $(this).prop('checked', state); |
723 | | - } |
| 717 | + $( 'input[type=checkbox].fbd-filters-check' ).not( this ).prop( 'checked', false ); |
724 | 718 | }); |
725 | 719 | |
726 | 720 | $( '#fbd-list' ).delegate( '.fbd-item', 'hover', function (){ |