Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.fn.treeTable = function(opts) {
- options = $.extend({}, $.fn.treeTable.defaults, opts);
- return this.each(function() {
- $(this).addClass("treeTable").find("tbody tr").each(function() {
- // Initialize root nodes only whenever possible
- if (!options.expandable || $(this)[0].className.search("child-of-") == -1) {
- initialize($(this));
- }
- });
- });
- };
- $(document).ready(function() {
- $(".reportTable").treeTable();
- });
- window.onload = function(){setTimeout("your_function()",0)}
Add Comment
Please, Sign In to add comment