Commit 28dd1427 by cahrens

Only change the collapse/expand state on the first child.

There are possibly children nested below that.
parent 650c9131
......@@ -111,7 +111,7 @@ define(["domReady", "jquery", "jquery.ui", "gettext", "js/views/feedback_notific
};
if (!ele.hasClass('collapsed')) {
ele.addClass('collapsed');
ele.find('.expand-collapse-icon').addClass('expand').removeClass('collapse');
ele.find('.expand-collapse-icon').first().addClass('expand').removeClass('collapse');
// onDragStart gets called again after the collapse, so we can't just store a variable in the dragState.
ele.addClass(this.expandOnDropClass);
}
......@@ -207,7 +207,7 @@ define(["domReady", "jquery", "jquery.ui", "gettext", "js/views/feedback_notific
expandElement: function (ele) {
ele.removeClass('collapsed');
ele.find('.expand-collapse-icon').removeClass('expand').addClass('collapse');
ele.find('.expand-collapse-icon').first().removeClass('expand').addClass('collapse');
},
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment