common.ui.js 528 B

12345678910111213141516
  1. function setLeftInput(event)
  2. {
  3. const $target = $(event.target);
  4. const $currentRow = $target.closest('tr');
  5. const left = $target.val();
  6. if(left.indexOf('task_') >= 0)
  7. {
  8. $currentRow.find('[data-name=left] input').attr('disabled', false);
  9. $currentRow.find('[data-name=left] input').removeClass('disabled');
  10. }
  11. else
  12. {
  13. $currentRow.find('[data-name=left] input').attr('disabled', true);
  14. $currentRow.find('[data-name=left] input').addClass('disabled');
  15. }
  16. }