mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-04 23:28:41 +02:00
MINOR Allowing .cms-content-fields to have its own layout
This commit is contained in:
parent
feca8390d7
commit
bb8bda862e
@ -95,7 +95,7 @@ jQuery.noConflict();
|
||||
redraw: function() {
|
||||
// Move from inner to outer layouts. Some of the elements might not exist.
|
||||
// Not all edit forms are layouted, so qualify by their data value.
|
||||
|
||||
this.find('.cms-content-fields[data-layout-type]').redraw();
|
||||
this.find('.cms-edit-form[data-layout-type]').redraw();
|
||||
|
||||
// Only redraw preview if its visible
|
||||
@ -250,6 +250,12 @@ jQuery.noConflict();
|
||||
}
|
||||
});
|
||||
|
||||
$('.cms-content-fields').entwine({
|
||||
redraw: function() {
|
||||
this.layout();
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Make all buttons "hoverable" with jQuery theming.
|
||||
* Also sets the clicked button on a form submission, making it available through
|
||||
|
Loading…
Reference in New Issue
Block a user