Only load the next view if it's different from the current view (Bug #9436).
authorJan Schneider <jan@horde.org>
Wed, 8 Dec 2010 12:56:55 +0000 (13:56 +0100)
committerJan Schneider <jan@horde.org>
Wed, 8 Dec 2010 12:56:55 +0000 (13:56 +0100)
kronolith/js/kronolith.js

index 2d2e5f6..fe74cb9 100644 (file)
@@ -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]);
+            }
         }
     },