mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge pull request #370 from micmania1/210-fix-message-overflow
FIX Success/error message overflow in cms
This commit is contained in:
commit
96d8adebab
16
js/cms.js
16
js/cms.js
@ -2,6 +2,22 @@
|
|||||||
|
|
||||||
$.entwine('ss', function ($) {
|
$.entwine('ss', function ($) {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The page success/error message sits outside of the html block
|
||||||
|
* containing the sidebar and cms fields. This means it overflows
|
||||||
|
* underneath the sidebar.
|
||||||
|
*
|
||||||
|
* @see https://github.com/silverstripe/silverstripe-blog/issues/210
|
||||||
|
*/
|
||||||
|
$('.cms-content-fields > #Form_EditForm_error').entwine({
|
||||||
|
'onadd': function() {
|
||||||
|
var $target = $('.blog-admin-outer');
|
||||||
|
if($target.length == 1) {
|
||||||
|
$target.prepend(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register expandable help text functions with fields.
|
* Register expandable help text functions with fields.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user