From 0ebd52516b5959a7de7dd5f5a36c3a671487fa5a Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 25 Mar 2013 23:41:21 +0100 Subject: [PATCH] FIX Unset "underneath page" title when switching to "top" in "add page" --- javascript/CMSMain.AddForm.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/javascript/CMSMain.AddForm.js b/javascript/CMSMain.AddForm.js index d62e906b..0048bacc 100644 --- a/javascript/CMSMain.AddForm.js +++ b/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(''); } } });