mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00: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…
x
Reference in New Issue
Block a user