Skip to content

Commit

Permalink
Update CMS preview when re-ordering rows
Browse files Browse the repository at this point in the history
  • Loading branch information
blueo committed Feb 27, 2018
1 parent 0974e36 commit e7825cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions javascript/GridFieldExtensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e7825cd

Please sign in to comment.