Skip to content

Commit

Permalink
FIX Unset "underneath page" title when switching to "top" in "add page"
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Mar 25, 2013
1 parent 0aeace2 commit 0ebd525
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion javascript/CMSMain.AddForm.js
Expand Up @@ -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('');
}
}
});
Expand Down

0 comments on commit 0ebd525

Please sign in to comment.