mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00: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() {
|
onclick : function() {
|
||||||
var w = window.open(this.href, windowName('site'));
|
var w = window.open(this.href);
|
||||||
w.focus();
|
w.focus();
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
@ -422,16 +422,6 @@ StageLink.applyTo('#viewStageSite', '?stage=Stage', 'StageURLSegment');
|
|||||||
StageLink.applyTo('#viewLiveSite', '?stage=Live', 'LiveURLSegment');
|
StageLink.applyTo('#viewLiveSite', '?stage=Live', 'LiveURLSegment');
|
||||||
StageLink.applyTo('#viewArchivedSite', '', 'URLSegment');
|
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.
|
* Remove all the currently active TinyMCE editors.
|
||||||
* Note: everything that calls this has an inappropriate coupling to TinyMCE.
|
* Note: everything that calls this has an inappropriate coupling to TinyMCE.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user