Guest User

Untitled

a guest
Jun 13th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. $.fn.treeTable = function(opts) {
  2. options = $.extend({}, $.fn.treeTable.defaults, opts);
  3.  
  4. return this.each(function() {
  5. $(this).addClass("treeTable").find("tbody tr").each(function() {
  6. // Initialize root nodes only whenever possible
  7. if (!options.expandable || $(this)[0].className.search("child-of-") == -1) {
  8. initialize($(this));
  9. }
  10. });
  11. });
  12. };
  13.  
  14. $(document).ready(function() {
  15. $(".reportTable").treeTable();
  16. });
  17.  
  18. window.onload = function(){setTimeout("your_function()",0)}
Add Comment
Please, Sign In to add comment