#1514 - JavaScript error when closing Page Version History section

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@43918 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-10-29 01:13:21 +00:00
parent 104e29c9fa
commit b6d828a2d6

View File

@ -331,8 +331,10 @@ VersionList.prototype = {
this.ajaxGetPanel(this.afterPanelLoaded); this.ajaxGetPanel(this.afterPanelLoaded);
}, },
onclose : function() { onclose : function() {
$('Form_EditForm').getPageFromServer(this.idLoaded); if(this.idLoaded) {
$('viewArchivedSite').style.display = 'none'; $('Form_EditForm').getPageFromServer(this.idLoaded);
}
$('viewArchivedSite').style.display = 'none';
} }
} }