mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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
This commit is contained in:
parent
817d1a0132
commit
18bd505747
@ -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
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user