editcategory.js 628 B

1234567891011121314151617
  1. $(document).ready(function()
  2. {
  3. $.setAjaxForm('#editForm', function()
  4. {
  5. /* After the form posted, refresh the treeMenuBox content. */
  6. source = createLink('traincourse', 'browseCategory', 'type=trainskill&categoryID' + categoryID + '=0&root=0') + ' #treeMenuBox';
  7. $('#treeMenuBox').parent().load(source, function()
  8. {
  9. /* Rebuild the category menu after treeMenuBox refreshed. */
  10. $(".tree").tree('expand');
  11. });
  12. });
  13. $('.group-item label.checkbox').css('float', 'left').css('margin-right', '10px').css('width', '100px');
  14. $('.chosen').chosen();
  15. });