Skip to content

Commit

Permalink
MINOR Redraw the whole layout on form submit, instead of relying on .…
Browse files Browse the repository at this point in the history
…cms-content onmatch() which doesn't get fired on partial refreshes (e.g. in CMSPageEditController)
  • Loading branch information
chillu committed Feb 16, 2012
1 parent d41f37f commit 0e3e290
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions admin/javascript/LeftAndMain.Content.js
Expand Up @@ -197,6 +197,9 @@


// Re-init tabs (in case the form tag itself is a tabset) // Re-init tabs (in case the form tag itself is a tabset)
if(self.hasClass('ss-tabset')) self.removeClass('ss-tabset').addClass('ss-tabset'); if(self.hasClass('ss-tabset')) self.removeClass('ss-tabset').addClass('ss-tabset');

// Redraw the layout
jQuery('.cms-container').entwine('ss').redraw();


// re-select previously saved tabs // re-select previously saved tabs
$.each(selectedTabs, function(i, selectedTab) { $.each(selectedTabs, function(i, selectedTab) {
Expand Down

0 comments on commit 0e3e290

Please sign in to comment.