BUGFIX: Fix concurrent editing message always being displayed on page version history.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@91203 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2009-11-10 21:27:42 +00:00 committed by Sam Minnee
parent 9b49ebf8b4
commit e4d9e265d2

View File

@ -874,7 +874,7 @@ var CurrentPage = {
}
setInterval(function() {
if ($('Form_EditForm_ID')) {
if ($('Form_EditForm_ID') && !($('Form_EditForm_ArchiveURL'))) {
new Ajax.Request("admin/pageStatus?ID="+CurrentPage.id()+'&Version='+CurrentPage.version(), {
onSuccess: function(t) {
var data = eval('('+t.responseText+')');