Use color to distinguish data object and archive unit
authorJuliette Belin <juliette.belin@logilab.fr>
Thu, 02 Feb 2017 18:36:18 +0100
changeset 2330 7a5161ab41f6
parent 2328 dd0cb08d7de3
child 2331 dd14281dcc40
Use color to distinguish data object and archive unit closes #16687425
data/cubes.jqtree.js
data/cubes.seda.css
--- a/data/cubes.jqtree.js	Mon Jan 30 15:02:43 2017 +0100
+++ b/data/cubes.jqtree.js	Thu Feb 02 18:36:18 2017 +0100
@@ -48,7 +48,10 @@
                 }
             },
             onCreateLi: function(node, $li) {
+                $li.find('.jqtree-title').addClass(node.type);
+
                 var selectedId = $tree.tree('getTree').children[0].selected;
+
                 if ( selectedId !== null && node.id === selectedId ) {
                     // add "jqtreeNodeSelected" CSS class so that the current
                     // element in the tree gets highlighted.
--- a/data/cubes.seda.css	Mon Jan 30 15:02:43 2017 +0100
+++ b/data/cubes.seda.css	Thu Feb 02 18:36:18 2017 +0100
@@ -26,3 +26,11 @@
 .jqtreeNodeSelected {
   font-weight: bold;
 }
+
+.SEDAArchiveUnit > a {
+  color: #06A3A3;
+}
+
+.SEDABinaryDataObject > a, .SEDAPhysicalDataObject > a {
+  color: #AE8332;
+}