From eba09dff2d1c293198656cf4b117c2d3c7f64a81 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 21 Nov 2009 02:37:57 +0000 Subject: [PATCH] API CHANGE Removed windowName() javascript method git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92641 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/LeftAndMain_right.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/javascript/LeftAndMain_right.js b/javascript/LeftAndMain_right.js index ffc8f0c5..15f2cc32 100755 --- a/javascript/LeftAndMain_right.js +++ b/javascript/LeftAndMain_right.js @@ -409,7 +409,7 @@ StageLink.prototype = { } }, onclick : function() { - var w = window.open(this.href, windowName('site')); + var w = window.open(this.href); w.focus(); return false; }, @@ -422,16 +422,6 @@ StageLink.applyTo('#viewStageSite', '?stage=Stage', 'StageURLSegment'); StageLink.applyTo('#viewLiveSite', '?stage=Live', 'LiveURLSegment'); StageLink.applyTo('#viewArchivedSite', '', 'URLSegment'); -window.name = windowName('cms'); - -/** - * Return a unique window name that contains the URL - */ -function windowName(suffix) { - var base = document.getElementsByTagName('base')[0].href.replace('~','').replace('http://','').replace(/\//g,'_').replace(/\./g,'_'); - return base + suffix; -} - /** * Remove all the currently active TinyMCE editors. * Note: everything that calls this has an inappropriate coupling to TinyMCE.