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:
Sam Minnee 2010-02-22 02:51:11 +00:00
parent 5b36ce5cc0
commit 411d0de4a2
2 changed files with 4 additions and 5 deletions

View File

@ -266,10 +266,10 @@ function ajaxActionsAtTop(formName, actionHolderName, tabName) {
var actions = document.getElementsBySelector('#' + formName + ' .Actions')[0];
var holder = $(actionHolderName);
if(actions) {
if ( holder ) {
if ( holder && holder != actions ) {
holder.parentNode.removeChild(holder);
}
if(actions) {
actions.id = actionHolderName;
actions.className = 'ajaxActions';

View File

@ -1,6 +1,5 @@
Behaviour.register({
'#Form_EditForm' : {
'body.ReportAdmin #Form_EditForm' : {
initialise : function() {
this.openTab = null;
this.prepareForm();