Commits

Chris Leonello committed ea13743

Fixes for hiding without fading and replotting.

Comments (0)

Files changed (2)

src/jqplot.core.js

                 if (s.shadowCanvas._elem) {
                     s.shadowCanvas._elem.show();
                 }
-                s.canvas._elem.show(callback);
+                s.canvas._elem.show(0, callback);
                 s.canvas._elem.nextAll('.jqplot-point-label.jqplot-series-'+s.index).show();
             }
             else {
                 if (s.shadowCanvas._elem) {
                     s.shadowCanvas._elem.hide();
                 }
-                s.canvas._elem.hide(callback);
+                s.canvas._elem.hide(0, callback);
                 s.canvas._elem.nextAll('.jqplot-point-label.jqplot-series-'+s.index).hide();
             }
         }

src/plugins/jqplot.enhancedLegendRenderer.js

                                         speed = this.seriesToggle;
                                     }
                                 } 
-                                else if (this.seriesToggle === true) {
-                                    speed = 'normal';
-                                }
                                 if (this.showSwatches) {
                                     td1.bind('click', {series:s, speed:speed, plot: plot, replot:this.seriesToggleReplot}, handleToggle);
                                     td1.addClass('jqplot-seriesToggle');
             }
 
             else {
+                var s = plot.series[sidx];
 
                 if (s.canvas._elem.is(':hidden') || !s.show) {
                     plot.legend._elem.find('tr').eq(sidx).children().addClass('jqplot-series-hidden');
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.