MINOR Allowing .cms-content-fields to have its own layout

This commit is contained in:
Ingo Schommer 2012-03-07 16:20:28 +01:00
parent feca8390d7
commit bb8bda862e

View File

@ -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