From b93e2bbee20c0ce0b1dd5991d32add22dd1488fe Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 13 Jul 2012 17:37:35 +0200 Subject: [PATCH] Remove .ss-tabset class from CMSMain forms, confuses tab state setting. It is already applied to the parent template container, which means that tab state finds two nested sets, setting the wrong id (#Root instead of #pages-controller-cms-content --- code/controllers/CMSMain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/controllers/CMSMain.php b/code/controllers/CMSMain.php index 81daa639..be0097e4 100644 --- a/code/controllers/CMSMain.php +++ b/code/controllers/CMSMain.php @@ -607,7 +607,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr $form->addExtraClass('cms-edit-form'); $form->setTemplate($this->getTemplatesWithSuffix('_EditForm')); // TODO Can't merge $FormAttributes in template at the moment - $form->addExtraClass('center ss-tabset ' . $this->BaseCSSClasses()); + $form->addExtraClass('center ' . $this->BaseCSSClasses()); // if($form->Fields()->hasTabset()) $form->Fields()->findOrMakeTab('Root')->setTemplate('CMSTabSet'); $form->setAttribute('data-pjax-fragment', 'CurrentForm');