go home button now works correctly
This commit is contained in:
parent
d393a15c4b
commit
87248730b3
1 changed files with 11 additions and 1 deletions
|
|
@ -47,7 +47,9 @@ WebGUI.Admin = function(cfg){
|
|||
self.adminBar.afterShow.subscribe( self.updateAdminBar, self );
|
||||
YAHOO.util.Event.on( window, 'load', function(){ self.adminBar.show( self.adminBar.dt[0].id ) } );
|
||||
self.newContentBar = new WebGUI.Admin.AdminBar( "newContentBar", { expandMax : true } );
|
||||
self.locationBar = new WebGUI.Admin.LocationBar( self.cfg.locationBarId );
|
||||
self.locationBar = new WebGUI.Admin.LocationBar( self.cfg.locationBarId, {
|
||||
homeUrl : self.cfg.homeUrl
|
||||
} );
|
||||
self.afterNavigate.subscribe( self.locationBar.afterNavigate, self.locationBar );
|
||||
if ( self.currentAssetDef ) {
|
||||
self.locationBar.navigate( self.currentAssetDef );
|
||||
|
|
@ -1018,6 +1020,14 @@ WebGUI.Admin.LocationBar.prototype.swapForwardToBack
|
|||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* goHome ( )
|
||||
* Go to the correct home URL
|
||||
*/
|
||||
WebGUI.Admin.LocationBar.prototype.goHome
|
||||
= function ( ) {
|
||||
window.admin.gotoAsset( this.cfg.homeUrl );
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue