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.
This commit is contained in:
Sean Harvey 2012-06-20 21:58:23 +12:00
parent da7935e01c
commit 86753baaa1

View File

@ -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 = [];