From 18fa57d60ed15651810e369f26ed17dff98ef2cc Mon Sep 17 00:00:00 2001 From: Jeremy Green Date: Thu, 21 Jan 2010 01:55:53 +0800 Subject: [PATCH] gotoDate will now check view.visStart and view.visEnd to determine wheather or not to render(). --- src/main.js | 4 +- tests/skip-redraw-test.html | 109 ++++++++++++++++++++++++++++++++++++ 2 files changed, 112 insertions(+), 1 deletion(-) create mode 100644 tests/skip-redraw-test.html diff --git a/src/main.js b/src/main.js index 14eb66e..25a5927 100644 --- a/src/main.js +++ b/src/main.js @@ -480,7 +480,9 @@ $.fn.fullCalendar = function(options) { date.setDate(dateNum); } } - render(); + if(date < view.visStart || date > view.visEnd ){ + render(); + } }, incrementDate: function(years, months, days) { diff --git a/tests/skip-redraw-test.html b/tests/skip-redraw-test.html new file mode 100644 index 0000000..5283996 --- /dev/null +++ b/tests/skip-redraw-test.html @@ -0,0 +1,109 @@ + + + + + + + + + + + +

gotoDate test page

+

+ This page is to test refactoring of gotoDate to check whether or not to call render() based on view.visStart and view.visEnd. +

+
+ +