From ce7497c38a59824f2e9724813d2183c91eacfcc6 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 15 Oct 2009 22:43:47 +0000 Subject: [PATCH] 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 --- javascript/LeftAndMain.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/javascript/LeftAndMain.js b/javascript/LeftAndMain.js index 4bca448f..4771989b 100644 --- a/javascript/LeftAndMain.js +++ b/javascript/LeftAndMain.js @@ -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'); } }