Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Mantilla committed Feb 4, 2014
1 parent b4dac2a commit c3587f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion index.html
Expand Up @@ -21,6 +21,6 @@
</head>
<body data-spy="scroll" data-target=".navigation-list">
<script src="//gizra.github.io/CDL/js/6658.config.js"></script>
<script src="//gizra.github.io/CDL/js/2a11.cdl.js"></script>
<script src="//gizra.github.io/CDL/js/99e5.cdl.js"></script>
</body>
</html>
12 changes: 6 additions & 6 deletions js/2a11.cdl.js → js/99e5.cdl.js
Expand Up @@ -74,7 +74,7 @@

// Background.
background = svgContainer.append('rect')
.attr('id', 'backgroud')
.attr('id', 'background')
.attr('width', width)
.attr('height', height)
.style('fill', 'transparent')
Expand Down Expand Up @@ -274,6 +274,11 @@
* @param node
*/
click: function(node) {
// If root element, do not perform any action.
if (node.depth === 0) {
return;
}

var nodeSelected;

// Start click node event.
Expand Down Expand Up @@ -321,11 +326,6 @@
* @param node
*/
secondClick: function(node) {
// If root element, do not perform any action.
if (node.depth === 0) {
return;
}

// If it's chronological node, go up until the parent not chronological and set like active node.
while (node.type === 'chronological') {
node = node.parent;
Expand Down

0 comments on commit c3587f5

Please sign in to comment.