From 87248730b33fc072821877bd5eab8d571b23067f Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Fri, 20 Aug 2010 14:19:26 -0500 Subject: [PATCH] go home button now works correctly --- www/extras/admin/admin.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/www/extras/admin/admin.js b/www/extras/admin/admin.js index 0991742a9..06959f9e4 100644 --- a/www/extras/admin/admin.js +++ b/www/extras/admin/admin.js @@ -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 ); +}; /**************************************************************************** *