added Sonia.History class to simplify handling of browser back and forward buttons

This commit is contained in:
Sebastian Sdorra
2011-08-15 11:02:57 +02:00
parent e8572f7b69
commit 1c4426d629
5 changed files with 59 additions and 21 deletions

View File

@@ -103,11 +103,7 @@ Sonia.user.Grid = Ext.extend(Sonia.rest.Grid, {
console.debug( item.name + ' selected' );
}
var token = Ext.History.getToken();
if ( token ){
var parts = token.split('|');
Ext.History.add(parts[0] + '|' + item.name);
}
Sonia.History.append(item.name);
var panel = new Sonia.user.FormPanel({
item: item,