From 5948d2c2ce9ccdd668bc2f775183c8a27b2e19ee Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Mon, 10 Oct 2011 20:48:35 +0000 Subject: [PATCH] fix a bug with doubleclicking on a calendar to zoom in --- source/Ox.UI/js/Calendar/Ox.Calendar.js | 2 +- source/Ox/js/Format.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/source/Ox.UI/js/Calendar/Ox.Calendar.js b/source/Ox.UI/js/Calendar/Ox.Calendar.js index 3fee5e62..1e449121 100644 --- a/source/Ox.UI/js/Calendar/Ox.Calendar.js +++ b/source/Ox.UI/js/Calendar/Ox.Calendar.js @@ -423,7 +423,7 @@ Ox.Calendar = function(options, self) { } else { if (self.options.zoom < self.maxZoom) { self.options.date = new Date( - (+self.options.date + +getMouseDate(e)) / 2 + (+self.options.date + +getMouseDate(data)) / 2 ); self.options.zoom++; } diff --git a/source/Ox/js/Format.js b/source/Ox/js/Format.js index ca0fef5a..14a549e9 100644 --- a/source/Ox/js/Format.js +++ b/source/Ox/js/Format.js @@ -396,7 +396,6 @@ Ox.formatDateRangeDuration = function(start, end, utc) { } // advance the date by one unit Ox['set' + parts[i]](date, Ox['get' + parts[i]](date, utc) + 1, utc); - Ox.print(key, '.....', date) if (date <= dates[1]) { // still within the range, add one unit values[i] = (values[i] || 0) + 1;