BUGFIX: Page tree node reflects any changes made to page (title, publication status) in its edit view

This commit is contained in:
Normann Lou 2012-02-24 16:46:46 +13:00
parent 312850aee9
commit 587d195647
2 changed files with 7 additions and 3 deletions

View File

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

View File

@ -154,7 +154,7 @@
});
});
$('.cms-edit-form').bind('reloadeditform', function(e, data) {
$('.cms-edit-form').live('reloadeditform', function(e, data) {
self._onLoadNewPage(e, data);
});
},