browse.ui.js 550 B

12345678910111213141516171819
  1. $(function()
  2. {
  3. setTimeout(function(){$("a[data-toggle='tab'][href='#" + type + "']")[0].click()}, 300);
  4. })
  5. function renderTabpane(event)
  6. {
  7. var currentTab = $(event.target).find('.active');
  8. const tabName = currentTab.attr('href');
  9. if(tabName !== undefined)
  10. {
  11. const tree = $(tabName + ' > #moduleMenu > .tree').zui();
  12. if(tree !== undefined)
  13. {
  14. const newItems = JSON.parse(tabName == '#view' ? groupTree : originTable);
  15. tree.render({items: newItems, show: false});
  16. }
  17. }
  18. }