mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge remote branch 'origin/master' into translation-staging
This commit is contained in:
commit
f4c918dabe
@ -124,7 +124,7 @@
|
|||||||
canPreview: function() {
|
canPreview: function() {
|
||||||
var contentEl = this.getLayoutContainer().find('.cms-content');
|
var contentEl = this.getLayoutContainer().find('.cms-content');
|
||||||
// Only load if we're in the "edit page" view
|
// Only load if we're in the "edit page" view
|
||||||
var blockedClasses = ['CMSPagesController', 'CMSSettingsController', 'CMSPageHistoryController'];
|
var blockedClasses = ['CMSPagesController', 'CMSPageHistoryController'];
|
||||||
return !(contentEl.is('.' + blockedClasses.join(',.')));
|
return !(contentEl.is('.' + blockedClasses.join(',.')));
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
<div class="cms-navigator">
|
||||||
|
<a href="#" class="ss-ui-button cms-preview-toggle-link" data-icon="preview">
|
||||||
|
« <% _t('SilverStripeNavigator.Edit', 'Edit') %>
|
||||||
|
</a>
|
||||||
|
</div>
|
Loading…
Reference in New Issue
Block a user