setkanban.ui.js 846 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. window.changeColWidth = function (e)
  2. {
  3. if(e.target.value == 1)
  4. {
  5. $('#colWidth').attr('disabled', true);
  6. $('#minColWidth').removeAttr('disabled');
  7. $('#maxColWidth').removeAttr('disabled');
  8. }
  9. else
  10. {
  11. $('#colWidth').removeAttr('disabled');
  12. $('#minColWidth').attr('disabled', true);
  13. $('#maxColWidth').attr('disabled', true);
  14. }
  15. }
  16. window.changeLaneHeight = function (e)
  17. {
  18. if(e.target.value == 'custom')
  19. {
  20. $('#displayCards').closest('.form-group').removeClass('hidden');
  21. }
  22. else
  23. {
  24. $('#displayCards').closest('.form-group').addClass('hidden');
  25. }
  26. }
  27. window.setCardCount = function (e)
  28. {
  29. if(e.target.value == 'custom')
  30. {
  31. $('#cardBox').removeClass('hidden');
  32. }
  33. else
  34. {
  35. $('#cardBox').addClass('hidden');
  36. }
  37. }