mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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:
parent
c8beba696c
commit
b319355c67
@ -496,6 +496,9 @@ StageLink.prototype = {
|
|||||||
} else {
|
} else {
|
||||||
if(this.id != 'viewArchivedSite') this.style.display = 'none';
|
if(this.id != 'viewArchivedSite') this.style.display = 'none';
|
||||||
}
|
}
|
||||||
|
if($('Form_EditForm_Lang')) {
|
||||||
|
this.href += "&lang=" + $('Form_EditForm_Lang').value;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onclick : function() {
|
onclick : function() {
|
||||||
var w = window.open(this.href, windowName('site'));
|
var w = window.open(this.href, windowName('site'));
|
||||||
|
Loading…
Reference in New Issue
Block a user