mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
BUGFIX: Fix navigator links not opening in new windows. (from r97510) (from r99116)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@111600 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b7b0e1ab0b
commit
5b2897381b
@ -103,6 +103,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
||||
function SwitchView() {
|
||||
if($page = $this->currentPage()) {
|
||||
$nav = SilverStripeNavigator::get_for_record($page);
|
||||
Requirements::customScript("window.name = windowName('cms');");
|
||||
return $nav['items'];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user