Permalink
Browse files

MINOR Removed windowName() manual setting in ContentController->Silve…

…rstripeNavigator()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92524 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 817d1a0 commit 18bd50574792da0c802e00d890b2c0265b404987 @chillu chillu committed Nov 21, 2009
Showing with 1 addition and 7 deletions.
  1. +1 −7 core/control/ContentController.php
@@ -296,18 +296,12 @@ public function SilverStripeNavigator() {
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
);

0 comments on commit 18bd505

Please sign in to comment.