Skip to content

Commit

Permalink
MINOR Removed windowName() manual setting in ContentController->Silve…
Browse files Browse the repository at this point in the history
…rstripeNavigator()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92524 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
chillu committed Nov 21, 2009
1 parent 817d1a0 commit 18bd505
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions core/control/ContentController.php
Expand Up @@ -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
);

Expand Down

0 comments on commit 18bd505

Please sign in to comment.