Skip to content

Instantly share code, notes, and snippets.

@eerohele
Last active December 24, 2015 06:59
Show Gist options
  • Save eerohele/6760690 to your computer and use it in GitHub Desktop.
Save eerohele/6760690 to your computer and use it in GitHub Desktop.
FancyTree.setActive() bug
<!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/smoothness/jquery-ui.min.css" rel="stylesheet" type="text/css" />
<link href="https://rawgithub.com/mar10/fancytree/master/src/skin-lion/ui.fancytree.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<script src="http://rawgithub.com/mar10/fancytree/master/src/jquery.fancytree.js"></script>
<script src="init.js"></script>
<meta charset=utf-8 />
<title>Test</title>
</head>
<body>
<div>
<div id="tree"></div>
</div>
<br/>
<input type="text">
</body>
</html>
$(function () {
var tree = $("#tree").fancytree({
source: [
{title: "Node 1", key: "1"},
{title: "Folder 2", key: "2", folder: true, children: [
{title: "Node 2.1", key: "3"},
{title: "Node 2.2", key: "4"}
]}
]
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment