Merge pull request #248 from silverstripe-terraformers/bugfix-update-preview-on-reorder

Update CMS preview when re-ordering rows
This commit is contained in:
Daniel Hensby 2018-02-27 10:09:00 +00:00 committed by GitHub
commit 8e24be2660
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -325,6 +325,12 @@
self.find('.sortable-header th:last').html(content);
}
// update CMS preview
var preview = $('.cms-preview');
if (preview.length) {
preview.entwine('.ss.preview')._initialiseFromContent();
}
form.removeClass('loading');
if (successCallback) {
successCallback.apply(this, arguments);