ENHANCEMENT Augmenting stage links in CMS with &lang URL parameter if Translatable is enabled

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@69963 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-01-10 12:39:51 +00:00
parent c8beba696c
commit b319355c67

View File

@ -496,6 +496,9 @@ StageLink.prototype = {
} else {
if(this.id != 'viewArchivedSite') this.style.display = 'none';
}
if($('Form_EditForm_Lang')) {
this.href += "&lang=" + $('Form_EditForm_Lang').value;
}
},
onclick : function() {
var w = window.open(this.href, windowName('site'));