From 817d8f8f45c90229e471aa6c9e5bdcdc8c15af37 Mon Sep 17 00:00:00 2001 From: Hayden Smith Date: Wed, 15 Oct 2008 20:47:29 +0000 Subject: [PATCH] BUGFIX: If ajaxActionsOnTop is called twice, the actions are removed. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@64314 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/LeftAndMain.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/LeftAndMain.js b/javascript/LeftAndMain.js index 0866599f..11c70103 100644 --- a/javascript/LeftAndMain.js +++ b/javascript/LeftAndMain.js @@ -252,7 +252,7 @@ function ajaxActionsAtTop(formName, actionHolderName, tabName) { var actions = document.getElementsBySelector('#' + formName + ' .Actions')[0]; var holder; - if((holder = $(actionHolderName)) && holder != actions) { + if((holder = $(actionHolderName)) && holder != actions && holder.className != 'ajaxActions') { holder.parentNode.removeChild(holder); }