From 760493b15a3b4dfdab29b9558aabca6453451d32 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 20 Dec 2017 14:09:31 +0300 Subject: [PATCH] Fix expand/collapse for treeview. --- apps/common/main/lib/component/TreeView.js | 29 ++++++++++++++----- apps/common/main/resources/less/treeview.less | 16 +++++++++- 2 files changed, 36 insertions(+), 9 deletions(-) diff --git a/apps/common/main/lib/component/TreeView.js b/apps/common/main/lib/component/TreeView.js index 4b4ed903f..fd89c1f9d 100644 --- a/apps/common/main/lib/component/TreeView.js +++ b/apps/common/main/lib/component/TreeView.js @@ -65,7 +65,7 @@ define([ Common.UI.TreeViewStore = Backbone.Collection.extend({ model: Common.UI.TreeViewModel, - expand: function(record) { + expandSubItems: function(record) { var me = this; var _expand_sub_items = function(idx, expanded, level) { for (var i=idx+1; i .item { display: block; width: 100%; .box-shadow(none);