From f790a2c74803e8cbcdf11064c022b2ac09d88e37 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 8 Dec 2010 13:56:55 +0100 Subject: [PATCH] Only load the next view if it's different from the current view (Bug #9436). --- kronolith/js/kronolith.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 2d2e5f66d..fe74cb986 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -580,11 +580,13 @@ KronolithCore = { */ loadNextView: function() { - this.viewLoading.shift(); + var current = this.viewLoading.shift(); if (this.viewLoading.size()) { var next = this.viewLoading.pop(); this.viewLoading = []; - this.go(next[0], next[1]); + if (current[0] != next[0] || current[1] || next[1]) { + this.go(next[0], next[1]); + } } }, -- 2.11.0