Last active
December 24, 2015 06:59
-
-
Save eerohele/6760690 to your computer and use it in GitHub Desktop.
FancyTree.setActive() bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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