mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX: Remove buttons from display if you load a CMS page that should have no buttons - reverts bug caused by r96551 and fixes the issue it was trying to solve.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@99553 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
5b36ce5cc0
commit
411d0de4a2
@ -266,10 +266,10 @@ function ajaxActionsAtTop(formName, actionHolderName, tabName) {
|
||||
var actions = document.getElementsBySelector('#' + formName + ' .Actions')[0];
|
||||
var holder = $(actionHolderName);
|
||||
|
||||
if ( holder && holder != actions ) {
|
||||
holder.parentNode.removeChild(holder);
|
||||
}
|
||||
if(actions) {
|
||||
if ( holder ) {
|
||||
holder.parentNode.removeChild(holder);
|
||||
}
|
||||
|
||||
actions.id = actionHolderName;
|
||||
actions.className = 'ajaxActions';
|
||||
|
@ -1,6 +1,5 @@
|
||||
|
||||
Behaviour.register({
|
||||
'#Form_EditForm' : {
|
||||
'body.ReportAdmin #Form_EditForm' : {
|
||||
initialise : function() {
|
||||
this.openTab = null;
|
||||
this.prepareForm();
|
||||
|
Loading…
Reference in New Issue
Block a user