From 4a3607dfcdb6b523b208e22863b06117dcc11d14 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Tue, 22 Nov 2011 19:42:26 +0100 Subject: [PATCH] fix non working history --- .../src/main/webapp/resources/js/sonia.history.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/scm-webapp/src/main/webapp/resources/js/sonia.history.js b/scm-webapp/src/main/webapp/resources/js/sonia.history.js index c3bd2e52d6..b9781c4794 100644 --- a/scm-webapp/src/main/webapp/resources/js/sonia.history.js +++ b/scm-webapp/src/main/webapp/resources/js/sonia.history.js @@ -37,15 +37,13 @@ Sonia.History = { recentlyChanged: [], add: function(token){ - if (this.initialized){ - if (token != Ext.History.getToken()){ - if (this.isInvokeable(this.recentlyChanged, token)){ - if ( debug ){ - console.debug('add history element ' + token); - } - this.recentlyAdded.push(token); - Ext.History.add(token, true); + if (token != Ext.History.getToken()){ + if (this.isInvokeable(this.recentlyChanged, token)){ + if ( debug ){ + console.debug('add history element ' + token); } + this.recentlyAdded.push(token); + Ext.History.add(token, true); } } },