From: Jan Schneider Date: Wed, 8 Dec 2010 12:56:55 +0000 (+0100) Subject: Only load the next view if it's different from the current view (Bug #9436). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f790a2c74803e8cbcdf11064c022b2ac09d88e37;p=horde.git Only load the next view if it's different from the current view (Bug #9436). --- 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]); + } } },