src/js/plugins/transfer-back.js
function targetControl(targetControl) {
    var tocheck = targetControl.find('input')
    var checknum = tocheck.length
    var targetText = tocheck
      .closest('.it-transfer-wrapper')
      .find('.transfer-header')
      .find('label span.num')
    var header = $(targetControl).find('.transfer-header input')

    if (checknum < 1) {
      $(header).prop('disabled', true)
    } else {
      $(header).prop('disabled', false)
    }

    $(targetText).text(checknum)
  }
function targetControl(targetControl) {
    var tocheck = targetControl.find('input')
    var checknum = tocheck.length
    var targetText = tocheck
      .closest('.it-transfer-wrapper')
      .find('.transfer-header')
      .find('label span.num')
    var header = $(targetControl).find('.transfer-header input')

    if (checknum < 1) {
      $(header).prop('disabled', true)
    } else {
      $(header).prop('disabled', false)
    }

    $(targetText).text(checknum)
  }
controllo elementi target