Skip to content
Browse files

FIX Unset "underneath page" title when switching to "top" in "add page"

  • Loading branch information...
1 parent 0aeace2 commit 0ebd52516b5959a7de7dd5f5a36c3a671487fa5a @chillu chillu committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 javascript/CMSMain.AddForm.js
View
3 javascript/CMSMain.AddForm.js
@@ -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('');
}
}
});

0 comments on commit 0ebd525

Please sign in to comment.
Something went wrong with that request. Please try again.