Browse files

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
  • Loading branch information...
1 parent 8ca961c commit c6039ae8d15bc4ef15928f2035a721fe2e518b72 @halkyon halkyon committed Jun 20, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 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 = [];

0 comments on commit c6039ae

Please sign in to comment.