From 009e3ec32f901a607bc741d465d04cc39829701f Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Fri, 11 Jan 2013 10:11:05 -0500 Subject: [PATCH] Last set of code review comments for unzoom. --- plugins/unzoom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/unzoom.js b/plugins/unzoom.js index ba510d0..d81413a 100644 --- a/plugins/unzoom.js +++ b/plugins/unzoom.js @@ -63,7 +63,7 @@ Dygraph.Plugins.Unzoom = (function() { } this.button_ = document.createElement('button'); - this.button_.innerHTML = 'Unzoom'; + this.button_.innerHTML = 'Reset Zoom'; this.button_.style.display = 'none'; this.button_.style.position = 'absolute'; var area = g.plotter_.area; @@ -92,7 +92,7 @@ Dygraph.Plugins.Unzoom = (function() { }; unzoom.prototype.show = function(enabled) { - this.button_.style.display = enabled ? 'block' : ''; + this.button_.style.display = enabled ? '' : 'none'; }; unzoom.prototype.destroy = function() { -- 2.7.4