Index: trunk/extensions/MoodBar/modules/ext.moodBar.dashboard/ext.moodBar.dashboard.js |
— | — | @@ -509,7 +509,6 @@ |
510 | 510 | wikitext = wikitext.replace(/~{3,5}/g, '') + "\n\n~~~~"; //remove and add signature for |
511 | 511 | parseWikiText($item, wikitext); |
512 | 512 | }); |
513 | | - |
514 | 513 | } |
515 | 514 | e.preventDefault(); |
516 | 515 | } |
— | — | @@ -613,8 +612,8 @@ |
614 | 613 | ) |
615 | 614 | ) |
616 | 615 | ); |
617 | | - $item |
618 | | - .append( tooltip ); |
| 616 | + $item.append( tooltip ); |
| 617 | + //close event, closure remembers object |
619 | 618 | $( '.fbd-tooltip-close' ) |
620 | 619 | .live( 'click' , function() { |
621 | 620 | tooltip.remove(); |
— | — | @@ -712,7 +711,17 @@ |
713 | 712 | $(this).prop('checked', true); |
714 | 713 | } |
715 | 714 | }); |
| 715 | + |
| 716 | + //only allow one of the secondary filters to be checked |
| 717 | + $( 'input[type=checkbox].fbd-filters-check').click(function(){ |
| 718 | + var count = $( 'input[type=checkbox].fbd-filters-check').length; |
| 719 | + if(count > 1) { |
| 720 | + $( 'input[type=checkbox].fbd-filters-check').prop('checked', false); |
| 721 | + $(this).prop('checked', true); |
| 722 | + } |
716 | 723 | |
| 724 | + }); |
| 725 | + |
717 | 726 | $( '#fbd-list' ).delegate( '.fbd-item', 'hover', function (){ |
718 | 727 | $(this).toggleClass('fbd-hover'); |
719 | 728 | }); |