mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
8d637e77e5
commit
eba09dff2d
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user