MINOR Extra CSS classes in SiteTree->getCMSActions()

This commit is contained in:
Ingo Schommer 2011-07-06 17:59:06 +02:00
parent 8382ebb742
commit bb0574e214

View File

@ -1987,7 +1987,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
// "unpublish" // "unpublish"
$unpublish = FormAction::create('unpublish', _t('SiteTree.BUTTONUNPUBLISH', 'Unpublish'), 'delete'); $unpublish = FormAction::create('unpublish', _t('SiteTree.BUTTONUNPUBLISH', 'Unpublish'), 'delete');
$unpublish->describe(_t('SiteTree.BUTTONUNPUBLISHDESC', 'Remove this page from the published site')); $unpublish->describe(_t('SiteTree.BUTTONUNPUBLISHDESC', 'Remove this page from the published site'));
$unpublish->addExtraClass('delete'); $unpublish->addExtraClass('unpublish');
$unpublish->addExtraClass('ss-ui-action-destructive'); $unpublish->addExtraClass('ss-ui-action-destructive');
$actions->push($unpublish); $actions->push($unpublish);
} }
@ -2025,7 +2025,8 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
} }
// "save" // "save"
$actions->push(new FormAction('save',_t('CMSMain.SAVE','Save'))); $actions->push($saveDraftAction = new FormAction('save',_t('CMSMain.SAVE','Save Draft')));
$saveDraftAction->addExtraClass('save-draft');
} }
} }