Permalink
Browse files

BUGFIX: Page tree node reflects any changes made to page (title, publ…

…ication status) in its edit view
  • Loading branch information...
1 parent 312850a commit 587d195647eb6480d2e75fb0fbcc4e1bb9922f48 @normann normann committed Feb 24, 2012
Showing with 7 additions and 3 deletions.
  1. +6 −2 admin/javascript/LeftAndMain.Content.js
  2. +1 −1 admin/javascript/LeftAndMain.Tree.js
@@ -194,8 +194,12 @@
var form = this.replaceForm(oldForm, data);
if(typeof(Behaviour) != 'undefined') Behaviour.apply(); // refreshes ComplexTableField
-
- this.trigger('reloadeditform', {form: form, origData: origData, xmlhttp: xmlhttp});
+
+ if(this.hasClass('cms-content')){
+ this.find('form.cms-edit-form').trigger('reloadeditform', {form: form, origData: origData, xmlhttp: xmlhttp});
+ }else{
+ this.trigger('reloadeditform', {form: form, origData: origData, xmlhttp: xmlhttp});
+ }
}
// set status message based on response
@@ -154,7 +154,7 @@
});
});
- $('.cms-edit-form').bind('reloadeditform', function(e, data) {
+ $('.cms-edit-form').live('reloadeditform', function(e, data) {
self._onLoadNewPage(e, data);
});
},

0 comments on commit 587d195

Please sign in to comment.