mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX: remove the unnecessary DOM manipulation, this is legacy code due to SilverStripeNavigator changes (open #5250)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@101604 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
ba3fbe101b
commit
0449a6bc7d
@ -309,12 +309,7 @@ VersionList.prototype = {
|
|||||||
var url = 'admin/getversion/' + pageID + '/' + versionID;
|
var url = 'admin/getversion/' + pageID + '/' + versionID;
|
||||||
if($('Form_EditForm_Locale')) url += "?locale=" + $('Form_EditForm_Locale').value;
|
if($('Form_EditForm_Locale')) url += "?locale=" + $('Form_EditForm_Locale').value;
|
||||||
$('Form_EditForm').loadURLFromServer(url);
|
$('Form_EditForm').loadURLFromServer(url);
|
||||||
$('viewArchivedSite').style.display = '';
|
|
||||||
$('viewArchivedSite').getVars = '?archiveDate=' + sourceEl.getElementsByTagName('td')[1].className;
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$('viewArchivedSite').style.display = 'none';
|
|
||||||
|
|
||||||
if(this.otherVersionID) {
|
if(this.otherVersionID) {
|
||||||
sourceEl.select();
|
sourceEl.select();
|
||||||
this.otherSourceEl.select(true);
|
this.otherSourceEl.select(true);
|
||||||
@ -342,7 +337,6 @@ VersionList.prototype = {
|
|||||||
if(this.idLoaded) {
|
if(this.idLoaded) {
|
||||||
$('Form_EditForm').getPageFromServer(this.idLoaded);
|
$('Form_EditForm').getPageFromServer(this.idLoaded);
|
||||||
}
|
}
|
||||||
$('viewArchivedSite').style.display = 'none';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user