API CHANGE Removed windowName() javascript method

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92641 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-11-21 02:37:57 +00:00
parent 8d637e77e5
commit eba09dff2d

View File

@ -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.