Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
Tracker plot checks for zoom before resetting
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrauer committed Oct 13, 2015
1 parent a6c839f commit b323f44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/tracker/public/js/trend/trend.view.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ midas.tracker.renderChartArea = function (curveData, first) {
midas.tracker.bindPlotEvents();

$('a.resetZoomAction').unbind('click').click(function () {
midas.tracker.plot.resetZoom();
if (midas.tracker.plot.plugins.cursor._zoom.isZoomed) {
midas.tracker.plot.resetZoom();
}
});
}
else {
Expand Down

0 comments on commit b323f44

Please sign in to comment.