diff --git a/code/buttons/BetterButton_Publish.php b/code/buttons/BetterButton_Publish.php index e4c1e4d..6bcfb71 100755 --- a/code/buttons/BetterButton_Publish.php +++ b/code/buttons/BetterButton_Publish.php @@ -54,7 +54,7 @@ public function transformToButton() { $this->setTitle(_t('SiteTree.BUTTONPUBLISHED', 'Published')); } - if($this->gridFieldRequest->record->stagesDiffer('Stage','Live') && $this->gridFieldRequest->recordIsDeletedFromStage()) { + if($this->gridFieldRequest->record->stagesDiffer('Stage','Live')) { $this->addExtraClass('ss-ui-alternate'); } diff --git a/code/extensions/GridFieldBetterButtonsItemRequest.php b/code/extensions/GridFieldBetterButtonsItemRequest.php index 16af597..c480554 100755 --- a/code/extensions/GridFieldBetterButtonsItemRequest.php +++ b/code/extensions/GridFieldBetterButtonsItemRequest.php @@ -103,7 +103,6 @@ public function updateItemEditForm($form) { $utils = $this->owner->record->getBetterButtonsUtils(); $form->Utils = $this->filterFieldList($form, $utils); $form->setTemplate('BetterButtons_EditForm'); - $form->addExtraClass('better-buttons-form'); } diff --git a/javascript/gridfield_betterbuttons.js b/javascript/gridfield_betterbuttons.js index cb1ba4a..29f3a1d 100755 --- a/javascript/gridfield_betterbuttons.js +++ b/javascript/gridfield_betterbuttons.js @@ -25,15 +25,6 @@ $.entwine('ss', function($) { } this._super(e); } - }); - - // This kills the publish/save button switch that happens on blur in CMSMain. - $('.better-buttons-form.cms-edit-form.changed').entwine({ - onmatch: function(e) { - }, - onunmatch: function(e) { - } - }); - + }) }); })(jQuery); \ No newline at end of file