MINOR embargo expiry fixes

MINOR deny/cancel spun out into seperate actyions (from r85047)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@89219 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-10-15 22:43:47 +00:00
parent bb5d8d5ca3
commit ce7497c38a

View File

@ -868,7 +868,8 @@ function hideIndicator(id) {
var CurrentPage = {
id: function() { if($('Form_EditForm_ID')) return $('Form_EditForm_ID').value; },
version: function() { if($('Form_EditForm_Version')) return $('Form_EditForm_Version').value; },
version: function() { if($('Form_EditForm_Version')) return parseInt($('Form_EditForm_Version').value, 10); },
setVersion: function(version) { $('Form_EditForm_Version').value = version; },
isDeleted: function() { if($('SiteTree_Alert')) return $('SiteTree_Alert').getAttribute('deletedfromstage'); }
}