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

@ -195,8 +195,12 @@
if(typeof(Behaviour) != 'undefined') Behaviour.apply(); // refreshes ComplexTableField
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
var _statusMessage = (xmlhttp.getResponseHeader('X-Status')) ? xmlhttp.getResponseHeader('X-Status') : xmlhttp.statusText;

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);
});
},