Page MenuHomePhabricator

32441.diff

Authored By
bzimport
Nov 22 2014, 12:06 AM
Size
799 B
Referenced Files
None
Subscribers
None

32441.diff

Index: modules/ext.fundraiserstatistics.js
===================================================================
--- modules/ext.fundraiserstatistics.js (revision 107620)
+++ modules/ext.fundraiserstatistics.js (working copy)
@@ -35,7 +35,14 @@
} );
// When someone clicks on a year, hide or show that year in the chart
$j( '#configholder .yeartoggle' ).click( function() {
- $j('.fundraiserstats-'+$j(this).attr( 'id' )).toggle();
+ var checked = $(this).is(":checked");
+ $j('.fundraiserstats-' + $j(this).attr('id')).each(function () {
+ if (checked) {
+ $j(this).css('display','block');
+ } else {
+ $j(this).css('display','none');
+ }
+ });
} );
// When someone clicks on Customize, display pop-up menu and change arrow icon.
$j( '#configtoggle' ).click( function() {

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8198
Default Alt Text
32441.diff (799 B)

Event Timeline