mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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
This commit is contained in:
parent
db25cf0d59
commit
817d8f8f45
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user