browsecategory.js 619 B

1234567891011121314
  1. $(document).ready(function()
  2. {
  3. /* Load the children of current category when page loaded. */
  4. var link = type == 'trainskill' ? createLink('traincourse', 'categoryChildren', 'type=' + type + '&categoryID=' + categoryID + '&originalType=') : createLink('traincourse', 'editCategory','type=' + type + '&categoryID=' + categoryID);
  5. $('#categoryBox').load(link);
  6. $('#treeMenuBox li:has(ul)').each(function()
  7. {
  8. $(this).children('.deleter').remove();
  9. });
  10. $('#treeMenuBox > .tree').tree();
  11. $.setAjaxLoader('#treeMenuBox .ajax, .panel-actions .ajax', '#categoryBox ','#childForm');
  12. });