[jqtree] Add missing CSS class to distinguish displayed node from others
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 05 Jan 2017 11:17:00 +0100
changeset 2269 5afe55a39449
parent 2268 96bda704e719
child 2270 fff66bc4fa29
[jqtree] Add missing CSS class to distinguish displayed node from others This has been missed while backporting from the saem_ref cube. Use a more specific class name along the way.
data/cubes.jqtree.js
data/cubes.seda.css
--- a/data/cubes.jqtree.js	Thu Jan 05 11:08:49 2017 +0100
+++ b/data/cubes.jqtree.js	Thu Jan 05 11:17:00 2017 +0100
@@ -50,9 +50,9 @@
             onCreateLi: function(node, $li) {
                 var selectedId = $tree.tree('getTree').children[0].selected;
                 if ( selectedId !== null && node.id === selectedId ) {
-                    // add "selected" CSS class so that the current element in
-                    // the tree gets highlighted.
-                    $li.find('.jqtree-title').addClass('selected');
+                    // add "jqtreeNodeSelected" CSS class so that the current
+                    // element in the tree gets highlighted.
+                    $li.find('.jqtree-title').addClass('jqtreeNodeSelected');
                 }
             }
         });
--- a/data/cubes.seda.css	Thu Jan 05 11:08:49 2017 +0100
+++ b/data/cubes.seda.css	Thu Jan 05 11:17:00 2017 +0100
@@ -22,3 +22,7 @@
   font-weight: normal;
   width: 20%;
 }
+
+.jqtreeNodeSelected {
+  font-weight: bold;
+}