From 2b4366b0d3dd59154ee78f4c8a799b5845bfb966 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Tue, 12 Jan 2010 23:57:47 +0000 Subject: [PATCH] MINOR fix issue where javascript popup calendar would not fire (from r88836) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@96787 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/CMSMain_left.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/javascript/CMSMain_left.js b/javascript/CMSMain_left.js index 6b03f88e..884373b2 100755 --- a/javascript/CMSMain_left.js +++ b/javascript/CMSMain_left.js @@ -263,13 +263,11 @@ batchactionsclass.prototype = { actionChanged: function() { var urlSegment = $('choose_batch_action').value.split('/').pop(); if ($('BatchActionParameters_'+urlSegment)) { - jQuery('#actionParams').empty(); - jQuery('#BatchActionParameters_'+urlSegment).appendTo('#actionParams'); - $('actionParams').style.display = 'block'; - $('actionParams').style.padding = '4px'; + jQuery('#BatchActionParameters .params').hide(); + jQuery('#BatchActionParameters_'+urlSegment).show(); + jQuery('#BatchActionParameters').show(); } else { - $('actionParams').innerHTML = ''; - $('actionParams').style.display = 'none'; + jQuery('#BatchActionParameters').hide(); } },