From: Michael J. Rubinsky Date: Fri, 3 Dec 2010 05:41:33 +0000 (-0500) Subject: Only build the overview once. Still need to add lazy loading onscroll etc... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=fe26f943d21083f012be7f8826a3f1c8151e91bf;p=horde.git Only build the overview once. Still need to add lazy loading onscroll etc... --- diff --git a/kronolith/js/mobile.js b/kronolith/js/mobile.js index c91b11541..13dc9da2a 100644 --- a/kronolith/js/mobile.js +++ b/kronolith/js/mobile.js @@ -42,6 +42,11 @@ date: null, /** + * Temporary fix for pages not firing pagebeforecreate events properly + */ + haveOverview: false, + + /** * Load all events between start and end time. * * @param Date firstDay @@ -755,8 +760,10 @@ // Set up overview $('#overview').bind('pageshow', function(event, ui) { KronolithMobile.view = 'overview'; - KronolithMobile.clearView('overview'); - KronolithMobile.loadEvents(KronolithMobile.date, KronolithMobile.date.clone().addDays(7), 'overview'); + if (!haveOverView) { + KronolithMobile.clearView('overview'); + KronolithMobile.loadEvents(KronolithMobile.date, KronolithMobile.date.clone().addDays(7), 'overview'); + } }); $('td').live('click', function(e) {