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
| /* comments.js | |
| * ver 3.0 | |
| * Requires jQuery | |
| * | |
| * Use: | |
| * comments.init( options ); | |
| * | |
| * Options: | |
| * selector: <jquery_selector> | |
| */ |
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
| /* | |
| * Copyright (c) 2012 R. Diaz de Leon <leon@elinter.net> | |
| * | |
| * comments.js | |
| * ver 5.0a | |
| * | |
| * Requires: | |
| * jQuery | |
| * | |
| * Use: |
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
| /* This function needs that the path arrays invoke the function | |
| * in order, else it will duplicate some nodes | |
| */ | |
| function populate(tree, path) { | |
| var node = {}; | |
| var label = path.shift(); | |
| var p_node = tree[tree.length - 1] || {}; | |
| if (!tree.length || p_node.label != label) { | |
| node.label = label; |
NewerOlder