From ad7383a58d0fb5abe226269cc4755d24a968dfe0 Mon Sep 17 00:00:00 2001 From: Jeremy Bridson Date: Fri, 5 Oct 2012 16:26:41 +1300 Subject: [PATCH] ENHANCEMENT: open/7886 added preview button to the settings page so that when a user changes the theme they can preview the change. --- admin/javascript/LeftAndMain.Preview.js | 2 +- .../Includes/CMSSettingsController_SilverStripeNavigator.ss | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 admin/templates/Includes/CMSSettingsController_SilverStripeNavigator.ss diff --git a/admin/javascript/LeftAndMain.Preview.js b/admin/javascript/LeftAndMain.Preview.js index d564263c1..1dc12e265 100644 --- a/admin/javascript/LeftAndMain.Preview.js +++ b/admin/javascript/LeftAndMain.Preview.js @@ -124,7 +124,7 @@ canPreview: function() { var contentEl = this.getLayoutContainer().find('.cms-content'); // Only load if we're in the "edit page" view - var blockedClasses = ['CMSPagesController', 'CMSSettingsController', 'CMSPageHistoryController']; + var blockedClasses = ['CMSPagesController', 'CMSPageHistoryController']; return !(contentEl.is('.' + blockedClasses.join(',.'))); }, diff --git a/admin/templates/Includes/CMSSettingsController_SilverStripeNavigator.ss b/admin/templates/Includes/CMSSettingsController_SilverStripeNavigator.ss new file mode 100644 index 000000000..49fd08a09 --- /dev/null +++ b/admin/templates/Includes/CMSSettingsController_SilverStripeNavigator.ss @@ -0,0 +1,5 @@ +
+ + « <% _t('SilverStripeNavigator.Edit', 'Edit') %> + +
\ No newline at end of file