From c6039ae8d15bc4ef15928f2035a721fe2e518b72 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 20 Jun 2012 21:58:23 +1200 Subject: [PATCH] BUGFIX When updating the tree from EditForm, ensure we only change the text of the tree node for the first .text element, instead of the nested ones. --- admin/javascript/LeftAndMain.Tree.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/javascript/LeftAndMain.Tree.js b/admin/javascript/LeftAndMain.Tree.js index 7a3c8c5eb..bf23fd084 100644 --- a/admin/javascript/LeftAndMain.Tree.js +++ b/admin/javascript/LeftAndMain.Tree.js @@ -239,7 +239,8 @@ // set title (either from TreeTitle or from Title fields) // Treetitle has special HTML formatting to denote the status changes. - if(title) node.find('.text').html(title); + // only update immediate text element, we don't want to update all the nested ones + if(title) node.find('.text:first').html(title); // Collect flag classes and also apply to parent var statusFlags = [];