From: Jan Schneider Date: Mon, 21 Jun 2010 14:59:06 +0000 (+0200) Subject: Need to load the next view also when returning early from go(). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ef7ab12d628cddf1cc504cd3c8f45b337776e155;p=horde.git Need to load the next view also when returning early from go(). --- diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 2d11a930c..64cb6c265 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -324,6 +324,7 @@ KronolithCore = { (loc == 'week' && date.getRealWeek() == this.date.getRealWeek()) || ((loc == 'day' || loc == 'agenda') && date.dateString() == this.date.dateString()))) { this.addHistory(fullloc); + this.loadNextView(); return; } @@ -358,9 +359,11 @@ KronolithCore = { var tasktype = locParts.shift() || this.tasktype; if (this.view == loc && this.tasktype == tasktype) { this.addHistory(fullloc); + this.loadNextView(); return; } if (!$w('all complete incomplete future').include(tasktype)) { + this.loadNextView(); return; } @@ -405,6 +408,7 @@ KronolithCore = { query = Object.toJSON({ title: term }); if (!($w('all past future').include(time))) { + this.loadNextView(); return; } @@ -468,6 +472,7 @@ KronolithCore = { case 'event': // Load view first if necessary. if (!this.view ) { + this.viewLoading.pop(); this.go(Kronolith.conf.login_view); this.go.bind(this, fullloc, data).defer(); return; @@ -510,6 +515,7 @@ KronolithCore = { case 'calendar': if (!this.view) { + this.viewLoading.pop(); this.go(Kronolith.conf.login_view); this.go.bind(this, fullloc, data).defer(); return;