From 636c916a23165f4fb1a53aa04363ef753caf2f35 Mon Sep 17 00:00:00 2001 From: Luke Ryley Date: Wed, 20 Jan 2016 10:56:04 +1300 Subject: [PATCH] Minor: Stopped messages overflowing in blog-post added line to cms.js that adds margin to messages on the new blog post page in CMS --- js/cms.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/js/cms.js b/js/cms.js index 15bae53..f539c00 100644 --- a/js/cms.js +++ b/js/cms.js @@ -44,7 +44,7 @@ $this.parent().next('.description').addClass('toggle-description-correct-description'); } }); - + /** * Custom merge actions for tags and categories */ @@ -81,18 +81,21 @@ }); } }); - + /** * Customise the cms-panel behaviour for blog sidebar - * + * * see LeftAndMain.Panel.js for base behaviour */ $('.blog-admin-sidebar.cms-panel').entwine({ minInnerWidth: 620, onadd: function() { + // Adding margin to prevent post options from overlaping message box + $('.message').attr('style', 'margin-right: 56px'); + this._super(); this.updateLayout(); - + // If this panel is open and the left hand column is smaller than the minimum, contract it instead if(!this.hasClass('collapsed') && ($(".blog-admin-outer").width() < this.getminInnerWidth())) { this.collapsePanel(); @@ -104,7 +107,7 @@ }, /** * Adjust minimum width of content to account for extra panel - * + * * @returns {undefined} */ updateLayout: function() {