From 1301df00d6dcef23ed31dcc289a50ff85c49fb78 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 16 Feb 2012 12:35:13 +0100 Subject: [PATCH] MINOR Button styling for "Settings" form --- code/model/SiteConfig.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/model/SiteConfig.php b/code/model/SiteConfig.php index 567661e9..42d3ba75 100644 --- a/code/model/SiteConfig.php +++ b/code/model/SiteConfig.php @@ -129,12 +129,13 @@ class SiteConfig extends DataObject implements PermissionProvider { function getCMSActions() { if (Permission::check('ADMIN') || Permission::check('EDIT_SITECONFIG')) { $actions = new FieldList( - new FormAction('save_siteconfig', _t('CMSMain.SAVE','Save')) + $saveAction = new FormAction('save_siteconfig', _t('CMSMain.SAVE','Save')) ); } else { $actions = new FieldList(); } + $saveAction->addExtraClass('ss-ui-action-constructive'); $this->extend('updateCMSActions', $actions); return $actions;