mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-06-28 07:29:27 +02:00
FIX Unset "underneath page" title when switching to "top" in "add page"
This commit is contained in:
parent
0aeace2aec
commit
0ebd52516b
|
@ -7,8 +7,9 @@
|
|||
$(".cms-add-form .parent-mode :input").entwine({
|
||||
onclick: function(e) {
|
||||
if(this.val() == 'top') {
|
||||
var parentField = this.closest('form').find('#ParentID .TreeDropdownField');
|
||||
var parentField = this.closest('form').find('#ParentID .TreeDropdownField')
|
||||
parentField.setValue('');
|
||||
parentField.setTitle('');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user