mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-24 16:29:09 +01:00
append new history tokens after login
This commit is contained in:
@@ -32,18 +32,22 @@ Ext.ns('Sonia');
|
||||
|
||||
Sonia.History = {
|
||||
|
||||
initialized: false,
|
||||
|
||||
historyElements: [],
|
||||
recentlyAdded: [],
|
||||
recentlyChanged: [],
|
||||
|
||||
add: function(token){
|
||||
if (token != Ext.History.getToken()){
|
||||
if (this.isInvokeable(this.recentlyChanged, token)){
|
||||
if ( debug ){
|
||||
console.debug('add history element ' + 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);
|
||||
}
|
||||
this.recentlyAdded.push(token);
|
||||
Ext.History.add(token, true);
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -170,6 +174,7 @@ Ext.History.on('ready', function(history){
|
||||
if (token && token != 'null'){
|
||||
Sonia.History.onChange(token);
|
||||
}
|
||||
Sonia.History.initialized = true;
|
||||
});
|
||||
|
||||
Ext.History.on('change', function(token){
|
||||
|
||||
Reference in New Issue
Block a user