From 18bd50574792da0c802e00d890b2c0265b404987 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 21 Nov 2009 02:31:00 +0000 Subject: [PATCH] MINOR Removed windowName() manual setting in ContentController->SilverstripeNavigator() git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92524 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/control/ContentController.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/core/control/ContentController.php b/core/control/ContentController.php index f2a7744fc..3e616425c 100755 --- a/core/control/ContentController.php +++ b/core/control/ContentController.php @@ -296,18 +296,12 @@ class ContentController extends Controller { Behaviour.register({ '#switchView a' : { onclick : function() { - var w = window.open(this.href,windowName(this.target)); + var w = window.open(this.href); w.focus(); return false; } } }); - - function windowName(suffix) { - var base = document.getElementsByTagName('base')[0].href.replace('http://','').replace(/\//g,'_').replace(/\./g,'_'); - return base + suffix; - } - window.name = windowName('site'); JS );