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
@ -194,8 +194,12 @@
|
|||||||
var form = this.replaceForm(oldForm, data);
|
var form = this.replaceForm(oldForm, data);
|
||||||
|
|
||||||
if(typeof(Behaviour) != 'undefined') Behaviour.apply(); // refreshes ComplexTableField
|
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
|
// 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);
|
self._onLoadNewPage(e, data);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user