mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: Page tree node reflects any changes made to page (title, publication status) in its edit view
This commit is contained in:
parent
312850aee9
commit
587d195647
@ -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;
|
||||
|
@ -154,7 +154,7 @@
|
||||
});
|
||||
});
|
||||
|
||||
$('.cms-edit-form').bind('reloadeditform', function(e, data) {
|
||||
$('.cms-edit-form').live('reloadeditform', function(e, data) {
|
||||
self._onLoadNewPage(e, data);
|
||||
});
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user