Permalink
Browse files

MINOR Extra CSS classes in SiteTree->getCMSActions()

  • Loading branch information...
1 parent 8382ebb commit bb0574e2143213e71c6e66ef4a155cfd3864029a @chillu chillu committed Jul 6, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 code/model/SiteTree.php
@@ -1987,7 +1987,7 @@ function getCMSActions() {
// "unpublish"
$unpublish = FormAction::create('unpublish', _t('SiteTree.BUTTONUNPUBLISH', 'Unpublish'), 'delete');
$unpublish->describe(_t('SiteTree.BUTTONUNPUBLISHDESC', 'Remove this page from the published site'));
- $unpublish->addExtraClass('delete');
+ $unpublish->addExtraClass('unpublish');
$unpublish->addExtraClass('ss-ui-action-destructive');
$actions->push($unpublish);
}
@@ -2025,7 +2025,8 @@ function getCMSActions() {
}
// "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');
}
}

0 comments on commit bb0574e

Please sign in to comment.