filter.js 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. $(function() {
  2. // $("#f-category button").on("click", function() {
  3. // c_id = $(this).attr("id").replace("f-c", "");
  4. // l_id = $(this).attr("list_id");
  5. // sub_project_list = [];
  6. // db_table["project"].forEach(element => {
  7. // if(element["category_id"] == c_id) {
  8. // sub_project_list.push(element["project_id"]);
  9. // }
  10. // });
  11. // sub_project_list.forEach(element => {
  12. // $("#f-p" + element).toggleClass("btn-primary btn-default");
  13. // });
  14. // sub_type_list = [];
  15. // db_table["type"].forEach(element => {
  16. // if(element["filetype_id"] == l_id) {
  17. // sub_project_list.push(element["type_id"]);
  18. // }
  19. // });
  20. // sub_type_list.forEach(element => {
  21. // $("#f-t" + element).toggleClass("btn-primary btn-default");
  22. // });
  23. // });
  24. // $("#f-project button").on("click", function() {
  25. // id = $(this).attr("id").replace("f-p", "");
  26. // });
  27. });